adding sorting
adding sort