posts sorting by date. nothing to be proud of(Bubble Sort is used)