Order repository revisions by ID, descending.
Fix for error message when resetting metadata on an installed repository.