Created
June 26, 2012 11:16
-
-
Save sapandiwakar/2995203 to your computer and use it in GitHub Desktop.
Sorting tableview rows Titanium : 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = tableview.data[0].rows; // Gets the first section from tableview. | |
// If you have more than one sections, you need to sort each individually | |
// or modify the sort function accordingly. | |
sort(data); | |
tableview.setData(data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment