| Page 1 of 1 | [ 4 posts ] |
|
newbie started using YUI API to write some small programs. While doing some stuff related to
Sorting a column with names here is data table declaration for name field {key:"fullName", label:"Name", sortable:true, className: 'col1'}, names like {"adam", "will", "john", "jessica"} are getting sorted but when i add {"adam", "will-smith", "john", "jessica"} hyphenated name will-smith i see the sorted column with "will-smith" always first then followed by alpahbetical sorting order. any suggestion how to go about to sort hyphenated names with regular names. Thanks, chandu |
|
might it be because the html tag for boldface which starts with a less-than symbol which precedes all lowercase characters? Datatable uses JavaScript's own Array sort function so it will sort just as JavaScript would do natively.
|
|
used Bold only to indicate that having problem sorting hyphentaed names
like "will-smith" , "rob-joy" when they are mixed with regular names without hyphen like "bob" "alice" etc. |
|
I thought so, but since I couldn't find any other reason for that strange behavior, I wondered if it might be this.
|
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group