Sorting cells in a column is easy. But how to sort cells in a row?

In the “Sort” dialog box, click on “Options” and select “Sort left to right”:

enter image description here

then,

enter image description here