fixed timestamp sorting, it was sorting by timestamp ascending instead of descending (this is only used when no search criteria are provided)