switched to time sorting