Share

Standardista Table Sorting

Code

Programming Languages: JavaScript

License: MIT License

Repositories

browse code, statistics, last commit on 2006-07-22 svn co https://wwm-sts.svn.sourceforge.net/svnroot/wwm-sts wwm-sts

Show:

What's happening?

  • Followup: RE: Outstanding Requests

    I realize that this post is over three years old, but I do not see a version of standardista that includes your #1, sorting on load by a default column. I could really use this feature, can you tell me how to accomplished it? I am versed in java/js/jsp, so a code snippet would be fine. Thanks!

    2009-09-30 16:30:38 UTC by eidolon1138

  • standardistaTableSortingInit() causes expansion of header

    1) Thanks for this script, works wonderfully and is easy to use. 2) When I call standardistaTableSortingInit() on a page that has existing tables (I call it several times to initialize sorting for tables added dynamically via Ajax), the table header columns (which are links) expand. The links get longer and longer every time I call the init() function on a page that has existing tables. A...

    2009-09-12 19:51:19 UTC by nobody

  • Sort 2 tables at the same time

    I need a way to sort 2 tables at the same time. Both tables have the same columns/order but different data. I need both columns to sort no matter which table's heading is clicked on.

    2009-05-14 01:43:55 UTC by hintswen

  • Comment: Firefox 1.5.0.11 Sorts but the sort does not make any sence!

    FIREFOX 3.0.6 sorts the original coded HTML sort order column correctly and goes bonkers when you try to sort other columns!? Any solutions? b (at) techpub.biz THX!

    2009-03-03 23:20:05 UTC by nobody

  • Opera: header contains text and div to position <input>

    When the input cell in the row is: Username This is rewritten in Opera 9.26 under WinXP SP2 as: Username

    2008-02-29 17:53:49 UTC by nobody

  • thead tds cannot have tags

    Hi. first of all great work. (please excuse my poor english) well, if in the sortable table thead tds element you put internal tags the sort will not work (at least in firefox 2.0 ) for example: #

    2008-01-09 19:30:33 UTC by nobody

  • handle formatted numbers like 12,345,689.00 correctly

    Formatted numbers are incorrectly sorted as text. The attached file suggests a way to correct this for the English language. It would be best to handle other languages that swap the roles of "." and "," or use other punctuation.

    2008-01-05 00:10:07 UTC by fe2417

  • The sorting function for currency doesnt handle negative s

    This can be fixed by changing the regex on lines 349 and 350 to this: var aa = that.getInnerText(a.cells[that.sortColumnIndex]).replace(/[^0-9.-]/g,''); var bb = that.getInnerText(b.cells[that.sortColumnIndex]).replace(/[^0-9.-]/g,''); Basiclly just add the - symbol into the regex, the user will need to make sure that numbers are using the negative symbol instead of being enclosed in ()

    2007-11-16 16:15:26 UTC by nobody

  • Sorting Links with other HTML tags

    Just wondering if it's possible to have it create sorting links with other html tags. I have headers inside the tag and the script doesn't make it a link, only makes the space after it a link. eg: QA .

    2007-10-02 14:26:53 UTC by nobody

  • Sorting does not work correct when sorting checkbox

    while there is a list of checkbox in the table, when you click sort for the checkbox column, it does not sort correctly.

    2007-09-26 06:17:30 UTC by nobody

Our Numbers