Sunday, July 13, 2008

Sorting HTML tables in Javascript (date, time, ipaddr,...)

Mingyi's Cross-Browser Javascript that sorts HTML tables

Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK):
  1. Sort US, European, mixed style and user-specified dates (and time)! It's not trivial!
  2. Support keyboard shortcuts for quick access to sorting (e.g., press 'ctrl+alt'+click anywhere in table to sort)!
  3. Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK):
    1. Sort US, European, mixed style and user-specified dates (and time)! It's not trivial!
    2. Support keyboard shortcuts for quick access to sorting (e.g., press 'ctrl+alt'+click anywhere in table to sort)!
    3. Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK): Mingyi's Cross-Browser Javascript that sorts HTML tables Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK): Mingyi's Cross-Browser Javascript that sorts HTML tables Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK):
      1. Sort US, European, mixed style and user-specified dates (and time)! It's not trivial!
      2. Support keyboard shortcuts for quick access to sorting (e.g., press 'ctrl+alt'+click anywhere in table to sort)!
      3. Support various levels of style preserving (row-level, cell-level or table-level (default)) after sorting. Particularly useful for the table rows that're alternatively highlighted (e.g., odds rows yellow, even rows blue).
      4. Support for user-supplied sorting function for any custom data type.
      5. Allows table sorting on page loading, force columns to be not sortable or only sortable in one direction. One could even optionally force all table to be sortable by default (without having to specify a 'sortable' class).
      6. Sorted tables can remember their states (so when user leaves the page and comes back, the tables remain sorted the way the user left the page with). This is also an optional customizable feature.
      7. Has a very popular FireFox extension evolved out of this script!

    Feature list 2 - you'd be hard pressed to find ALL the features below in any other solutions:
        1. Easy to use, runs very fast, X-browser
        2. Support multiple tables on the same html page.
        3. Works with thead, tbody, th, etc. html tags and allows multi-row header and footer.
        4. Intelligent sorting - Automatically detects data types so that sorting is correct. For example, this script would recognize that 0.5 and 5E-1 are the same values, '06/22/1996 16:59:02' and '06/22/1996 04:59:02 PM' are the same time.
        5. Allow force sorting of unrecognized currencies.
        6. Allow customization of the style of the table heading clickable links. Allows customization of (warning) messages as well.
        7. Improved reliability over offending data (like non-number in a number column).
        8. Too many small customizable features to name, please check the script customizable parameters instead.
        9. Mingyi's Cross-Browser Javascript that sorts HTML tables Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK):
          1. Sort US, European, mixed style and user-specified dates (and time)! It's not trivial!
          2. Support keyboard shortcuts for quick access to sorting (e.g., press 'ctrl+alt'+click anywhere in table to sort)!
          3. Support various levels of style preserving (row-level, cell-level or table-level (default)) after sorting. Particularly useful for the table rows that're alternatively highlighted (e.g., odds rows yellow, even rows blue).
          4. Support for user-supplied sorting function for any custom data type.
          5. Allows table sorting on page loading, force columns to be not sortable or only sortable in one direction. One could even optionally force all table to be sortable by default (without having to specify a 'sortable' class).
          6. Sorted tables can remember their states (so when user leaves the page and comes back, the tables remain sorted the way the user left the page with). This is also an optional customizable feature.
          7. Has a very popular FireFox extension evolved out of this script!
          Feature list 2 - you'd be hard pressed to find ALL the features below in any other solutions:
          1. Easy to use, runs very fast, X-browser
          2. Support multiple tables on the same html page.
          3. Works with thead, tbody, th, etc. html tags and allows multi-row header and footer.
          4. Intelligent sorting - Automatically detects data types so that sorting is correct. For example, this script would recognize that 0.5 and 5E-1 are the same values, '06/22/1996 16:59:02' and '06/22/1996 04:59:02 PM' are the same time.
          5. Allow force sorting of unrecognized currencies.
          6. Allow customization of the style of the table heading clickable links. Allows customization of (warning) messages as well.
          7. Improved reliability over offending data (like non-number in a number column).
          8. Too many small customizable features to name, please check the script customizable parameters instead.
          9. Mingyi's Cross-Browser Javascript that sorts HTML tables Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK):
            1. Sort US, European, mixed style and user-specified dates (and time)! It's not trivial!
            2. Support keyboard shortcuts for quick access to sorting (e.g., press 'ctrl+alt'+click anywhere in table to sort)!
            3. Support various levels of style preserving (row-level, cell-level or table-level (default)) after sorting. Particularly useful for the table rows that're alternatively highlighted (e.g., odds rows yellow, even rows blue).
            4. Support for user-supplied sorting function for any custom data type.
            5. Allows table sorting on page loading, force columns to be not sortable or only sortable in one direction. One could even optionally force all table to be sortable by default (without having to specify a 'sortable' class).
            6. Sorted tables can remember their states (so when user leaves the page and comes back, the tables remain sorted the way the user left the page with). This is also an optional customizable feature.
            7. Has a very popular FireFox extension evolved out of this script!
            Feature list 2 - you'd be hard pressed to find ALL the features below in any other solutions:
            1. Easy to use, runs very fast, X-browser
            2. Support multiple tables on the same html page.
            3. Works with thead, tbody, th, etc. html tags and allows multi-row header and footer.
            4. Intelligent sorting - Automatically detects data types so that sorting is correct. For example, this script would recognize that 0.5 and 5E-1 are the same values, '06/22/1996 16:59:02' and '06/22/1996 04:59:02 PM' are the same time.
            5. Allow force sorting of unrecognized currencies.
            6. Allow customization of the style of the table heading clickable links. Allows customization of (warning) messages as well.
            7. Improved reliability over offending data (like non-number in a number column).
            8. Too many small customizable features to name, please check the script customizable parameters instead.
            Right click on this link (35 kb file) or here (a compressed version, only 15 kb but not easy to read/customize) and choose to save it as sorttable.js into the folder where your html files are.

    No comments: