Added the capability to sort