Adding sorting capabilities.