我使用下面的代碼來輸出按頁面標題排序的Wordpress頁面。WordPress的get_pages按post_title排序,包含非拉丁字符
$args = array(
'sort_order' => 'asc',
'sort_column' => 'post_title',
'hierarchical' => 1,
'child_of' => $page,
'parent' => -1,
'post_type' => 'page',
'post_status' => 'publish'
);
$pages = get_pages($args);
它工作正常,除非頁面以非拉丁字符開頭。 Å被排序爲A,它應該在最後跟隨我們的瑞典字母表。
見答案[這裏](http://stackoverflow.com/questions/5529013/problem-sorting-swedish-characters-%C3%85-%C3%84-%C3%96-mysql) – SevStryker
@SevStryker Mad Marvin的回答實際上解決了我的問題。如果你喜歡把它作爲正確的答案,我會接受它。 – Filip
這是沒有必要的,我只是很高興幫助你 – SevStryker