I wish the situation were that simple. 🙂
As mentioned in my post I want the id's to be grouped together as such, and it is critical that the most current timestamp be listed first:
id timestamp
5 989612068
1 989611713
1 989610264
1 989610239
9 989610253
If i just group by timestamp the id's are not grouped together and everything is sorted like so without keeping the id's together:
5 989612068
1 989611713
1 989610264
9 989610253
1 989610239
Also using GROUP By what happens if the timestamp is the same? In the result you won't get both records.
Is there any other solutions than pulling the data and looping to get the results?
Thanks,
Troy