Changed host usage repository to get all records in ascending or descending order based on parameter.