tags:

views:

16

answers:

1

i am trying to generate a common api for my website!!! i got seperate code for different services like twitter, youtube and flickr!!! can someone tell me how to sort them all together by date????

+2  A: 

Convert them all to some standard measurement, like a Unix timestamp. Then you can use numeric sorting methods.

avpx
Do take note of the date timezone though. I've not tried it but could be rather tricky.
o.k.w