I have a table that has a bunch of rows, but only three columns, date, username and posts.
Username has usernames, and they repeat a lot. Posts has a bunch of numbers. Date has the date something was posted in the Y-m-D format.
Now when I run SELECT * FROM table WHERE date = '2014-02-20', I get a bunch of mixed results, like this:
date username posts
2014-02-20 user1 1
2014-02-20 user2 2
2014-02-20 user14 1
2014-02-20 user3 1
2014-02-20 user2 3
2014-02-20 user2 4
2014-02-20 user11 1
2014-02-20 user1 2
2014-02-20 user8 2
2014-02-20 user9 3
2014-02-20 user55 4
2014-02-20 user5 3
I want to sort it out so it will look like this:
date username posts
2014-02-20 user1 1
2014-02-20 user1 2
2014-02-20 user1 3
2014-02-20 user1 4
2014-02-20 user2 1
2014-02-20 user2 2
2014-02-20 user2 3
2014-02-20 user2 4
2014-02-20 user2 5
2014-02-20 user2 6
2014-02-20 user3 1
2014-02-20 user3 2
How can I do that?
user10comes right afteruser1,user2comes afteruser19, and so on..