I am sure most of you would of used Facebook or know how to use it at some point now I am creating a group feature similar to the one Facebook has implemented on there site but with my own unique features.
The only big issue I have been having and users have requested to do this so I need to make my users happy is sort the posts like Facebook does so the newest comment gets display down the bottom of the posts and the oldest comments get's display right up the top I have tried these but they have no effect I am coding this software for the Mybb forum system/software.
[Not sure why stackoverflow didnt put a code block around this so you all know no big deal] $db->query("SELECT * FROM " . TABLE_PREFIX. "groups_comments WHERE post_id='$something' ORDER BY post_id DESC");
I even replaced desc with asc and tried to sort it different ways.
how would I be able to sort it like Facebook so I can make the feature easier to find comments and to use
Thanks!
Note: There's really no code to see as this is a how to feature as I have not written anything decent but I have tried before asking.
I be great full as I have been searching for days without luck [maybe not searching the right term]