UI HTML Sort by time first