sort category posts by time