Sort times in ascending order http://stackoverflow.com/a/8837511/4534