Trust me MySQL is much simpler than this, but, if you want to take this approach, I'd recommend storing the posts in a different format. Perhaps in JSON, or to make it easier split bits up using delimiters. This way it won't matter in which order they are stored because you could explode them or parse them into an array that you can work with far easier; sorting by date, alphabetically... however you want. Then you just have to format the data and output it. Will make changing the design, style, etc. later on much easier for yourself as well.