PDA

View Full Version : StoreFilter with Hungarian charachter, Wrong sort...



eggp
14 Jan 2012, 6:58 AM
Hello...

I make a Hungarian-language application and i use grid and GridFilters ... i sort ASC or DESC...
the result is not good because the Hungarian characters include accents
about list:
agyag
árva
árboc
bela
joska

sort ASC after:
agyag
bela
joska
árva
árboc

sort DESC after:
árva
árboc
joska
bela
agyag

and so the list should look good about sort ASC after:
agyag
árboc
árva
bela
joska

how can this problem be remedied ?

Ersmarker
16 Jan 2012, 12:38 AM
Hi.
You can set a custom storeSorter with a custom Comparator to the store:


store.setStoreSorter(new StoreSorter<ModelData>(new Comparator<Object>() {
@Override
public int compare(Object o1, Object o2) {
// Your custom code
}
}));