Coldblackice
[H]ard|Gawd
- Joined
- Aug 14, 2010
- Messages
- 1,152
What Javascript or jQuery functions might I use to sort a smattering of elements on a page?
I'm not asking for a verbatim code, just what sort of functions might be useful or appropriate (even partly) to help accomplish this purpose. I'm looking for both Javascript functions and jQuery functions.
What I'm trying to do:
I often see pages where I'd like to sort or arrange a number of elements, like sorting book titles on a page into alphabetical order, or sorting a random scattering of dates into chronological order, etc. I'm attempting this only as a self-assigned example on my way to learning Javascript and jQuery.
I realize that, without giving a specific page or example, I'm impeding assistance on any element selection techniques and function suggestions, but I'm mostly looking for Javascript/jQuery functions/methods/ways that could/would be used to sort or arrange elements (rather than page-specific JS/jQuery selector methods or techniques).
I'm not asking for a verbatim code, just what sort of functions might be useful or appropriate (even partly) to help accomplish this purpose. I'm looking for both Javascript functions and jQuery functions.
What I'm trying to do:
I often see pages where I'd like to sort or arrange a number of elements, like sorting book titles on a page into alphabetical order, or sorting a random scattering of dates into chronological order, etc. I'm attempting this only as a self-assigned example on my way to learning Javascript and jQuery.
I realize that, without giving a specific page or example, I'm impeding assistance on any element selection techniques and function suggestions, but I'm mostly looking for Javascript/jQuery functions/methods/ways that could/would be used to sort or arrange elements (rather than page-specific JS/jQuery selector methods or techniques).
Last edited: