added time sorting to examples