adding sorting option