Changed createUUID function to allow sorting of records by time