Posts Tagged ‘sorting’

jQuery – sorting DIVs by date

Saturday, October 18th, 2008

I just had to sort a list of DIVs by date with the newest date first. To add complexity to the problem the dates could be either in Atom or RSS2 format. The sorting itself is done with TinySort. A really useful little library.... Read More

Sorting 2D-arrays in PHP – anectodes and reflections

Sunday, January 6th, 2008

Update Aug 4, 2008: The below 2D sorting stuff has been superseded by the sorting section in the fluent article. The below example should be seen as something merely anecdotal and not be taken as a good example of how to sort 2D arrays by column. Alternatively, if you’re fine with a really simple approach see the end of the below article.... Read More