Hi,

as a starting point you can use this code on a table model:

        model.setSortMethods(columnIndex, {
          ascending: function(a, b) {
            // In case that you want to use the same method for more
            // columns the column index can be retrieved by this way.
            var col = arguments.callee.columnIndex;
            return a[col].localeCompare(b[col]);
          },
          descending: function(a, b) {
            var col = arguments.callee.columnIndex;
            return a[col].localeCompare(b[col]) * -1;
          }
        });

It's a quick post, without guarantee ;-)

Hope that helps
Petr

2011/1/11 Kovács Zoltán <[email protected]>:
> Dear All,
> I would like to sort my strings in a table using the sorting rules of my
> national language. Is it possible automagically in Qooxdoo? If not, could
> you please give a hint how to start to implement that?
> Thank you in advance and thanks for the great work on Qooxdoo. It is a nice
> framework!
> Best regards, Zoltan
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to