Added code to sort listings

Added code to sort listings pieces in descending order.