Am 04.05.2012 15:55, schrieb Thomas Goettlicher:
On Fri May 4 2012 15:49:28 Ladislav Slezak wrote:
Dne 4.5.2012 15:41, Thomas Goettlicher napsal(a):
On Fri May 4 2012 13:25:24 Ladislav Slezak wrote: [...]
I fine-tuned the sort function now: * Leading blanks for numbers are ignored * '+' and '-' in front of numbers are respected * text separated by a blank right of a number is being ignored
Great! Thanks!
I think that's a sufficient solution for>95% of scenarios.
Yes, I agree.
Could someone enhance also Gtk and ncurses UI so they behave the same way? Thanks in advance!
If you implement it in gtk or ncurses and want to spy at my code, it's: QY2ListViewItem::operator<() See: http://svn.opensuse.org/svn/yast/trunk/qt/src/QY2ListView.cc
I will add the improvements (respect locale and sort numbers correctly) to YaST ncurses. I have already changed the ncurses package selector to respect the locale setting when sorting the package table. Greetings Gabi
Cheers, Thomas
--
Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE
-- Gabriele Mohr SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstr. 5 Tel: +49 911 740 53 362 90409 Nürnberg Email: gs@suse.de ----------------------------------------------------------------- -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org