added sortby feature