TableSorter Jquery plugins or Angular OrderBy Sorting?

805 views
Skip to first unread message

Aki

unread,
Nov 26, 2012, 7:53:00 AM11/26/12
to ang...@googlegroups.com
Folks, 

Am trying to create a table which has sorting facility. Came to know about Table sorter Jquery plugin, but it was throwing few errors when used with ng-repeat/bootstrap (raised a query on this in stack overflow (http://stackoverflow.com/questions/13565064/tablesorter-with-angularjsbootstrap).

Also, i created table using orderBy property for sorting and its working well, though i am facing issue where my Json is parsing Numbers as Strings, so instead of number sorting it does String sorting. Eg: if  i have value of age as : age:"100",age:"9". age:"7". on doing Desc sorting, age : 9 comes first then 7 and then 100. Coz it does a string sorting, Any idea how to parse this into Number prior sorting. Any angular methods?

So, is TableSorter plugin the best bet to go now, since it has all the inbuilt properties ( hopefully if issues are resolved)?


Ryan Randall

unread,
Nov 26, 2012, 8:36:00 AM11/26/12
to ang...@googlegroups.com

Aki

unread,
Nov 26, 2012, 11:24:07 AM11/26/12
to ang...@googlegroups.com
Wow ths looks good. Thnks fr posting Ryan

Tim Sweet

unread,
Dec 4, 2012, 1:11:32 AM12/4/12
to ang...@googlegroups.com
Hey there, We have moved in with angular-ui! http://angular-ui.github.com/ng-grid/

Cheers,
Tim Sweet
Reply all
Reply to author
Forward
0 new messages