Reverted changes for sorting results based on date when scores are equal