Add query for asc & desc sorting