Sorting is now locale-aware: titles and other text fields order the way a person would expect, so note 2 comes before Note 10, accented letters sit next to their plain forms, and case no longer splits a list. The language follows workspace.locale in .iwe/config.toml and falls back to the system locale. When you need the old byte order or a specific language, --sort field:asc:binary or a locale tag such as sv-SE picks the collation per sort key, in both the CLI and query documents.
iwe
Added
--sort field:DIR:COLLATIONandsort: { field: { order, collation } }in query documents, withbinaryfor codepoint order or a locale tag such assv-SE
Changed
find --sortand querysorton text fields use locale-aware collation: case and accents no longer split results,Note 2sorts beforeNote 10and emoji are ignored except to break ties (previously byte order)- The collation language comes from
workspace.localein.iwe/config.toml, falling back to the system locale and then English
Fixed
workspace.localeandmarkdown.localevalues with a@modifier such asde_DE@euronow format dates in that language (previously they fell back to POSIX)
iwes
Changed
- The sort code action and completion ordering use locale-aware collation: case and accents no longer split a list,
Note 2sorts beforeNote 10and emoji are ignored except to break ties - The collation language comes from
workspace.localein.iwe/config.toml, falling back to the system locale and then English
Fixed
workspace.localeandmarkdown.localevalues with a@modifier such asde_DE@euronow format dates in that language (previously they fell back to POSIX)
iwec
Added
iwe_queryacceptssort: { field: { order, collation } }withbinaryfor codepoint order or a locale tag such assv-SE
Changed
iwe_findandiwe_querysorton text fields use locale-aware collation: case and accents no longer split results,Note 2sorts beforeNote 10and emoji are ignored except to break ties (previously byte order)- The collation language comes from
workspace.localein.iwe/config.toml, falling back to the system locale and then English
Library crates (liwe, diwe)
liwe
Added
collation::TitleCollatorfor locale-aware text ordering (case and accents break ties only, numbers compare by value, emoji are ignored);TitleCollator::binary()keeps codepoint orderGraph::collatorandGraph::with_collator; the default is binarylocale::strip_locale_encodingCollationandSort::collation: a sort key may setbinaryor a locale tag to choose how its strings compare;TitleCollator::for_collationbuilds the matching collator
Changed
sort_in_placetakes a&TitleCollator;Tree::sort_childrenandTree::is_sortedtake a comparator closure
Fixed
get_localeaccepts locale strings with a@modifier such asde_DE@euro
diwe
Changed
DocumentFindersorts text fields with the graph'sTitleCollator(codepoint order unless the graph was given a localized collator)