Hey,
sounds like a bug to me then. Do you have an isolated sample showing the issue? 
A playground sample would be a good test to see the bug live and also attach it 
to a bug report for further progress.
Thanks,
Martin

Am 06.12.2012 um 14:31 schrieb Marc-André Dubois 
<[email protected]<mailto:[email protected]>>:

I done more test and the result is little bit different of what I thought :

INITIAL                 ADD/REMOVE                  AFTER SORT
Item 1                  Item2                                   Item 0 (On 
click action Item 0)
Item 2                  Item 3                                  Item 3 (On 
click action Item 2)
Item 3                  Item 0                                  Item 0 (On 
click action Item 3)

The sorting function work correctly and items are at the good place on the list.

It’s really just the refresh of the display of the list who is the problem.

Marc-André Dubois
[email protected]<mailto:[email protected]>
Programmeur-Analyste
De : Marc-André Dubois [mailto:[email protected]<http://lanauco.com>]
Envoyé : 6 décembre 2012 08:06
À : 
[email protected]<mailto:[email protected]>
Objet : [qooxdoo-devel] Sorting problem

Hi,

I think I found a bug but I want a confirmation before creating a ticket :

I have a menu in list in my master page.

My list is bind on a qx.data.Array object

When my items list on my array change, I call a sort function on my array 
object .

                this.childrens.sort(function(var1, var2){

                    if(var1.order > var2.order){
                        return = 1;
                    }else if(var1.order == var2.order){
                        return = 0;
                    }else{
                        return = -1
                    }
                });

In my items list, I remove first item, after, I add a new item at the end. 
After that, I call sort function.

The result should be that :

INITIAL                 ADD/REMOVE                  AFTER SORT
Item 1                  Item2                                   Item 0
Item 2                  Item 3                                  Item 2
Item 3                  Item 0                                  Item 3

But the result is :

INITIAL                 ADD/REMOVE                  AFTER SORT
Item 1                  Item2                                   Item 0
Item 2                  Item 3                                  Item 2
Item 3                  Item 0                                  Item 0 <= 
Problem here

But if I click on the second Item 0, I have the result of my Item 3…

So I think it’s a problem with the display of the qx.ui.mobile.list.List

Thank you

Marc-André Dubois
[email protected]<mailto:[email protected]>
Programmeur-Analyste
<image001.png>
1.877.881.5151 p.261 (sans frais).
450.831.5151 p.261
450.839.1103 (Fax)
Web : http://www.lanauco.com<http://www.lanauco.com/>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to