The main appropriate tag for questions concerning spreadsheet is
calc. A wrong tag in this case is
common which should be used if (many) different document colasses are concerned. The additional tags aren’t of much use.
Did you look at the available sorting feature(s) under the main menu item
Data and apply one?
If so: What -exactly- was your issue?
If not: Do it.
To supply clearer information, please edit your question. Do not use the answer tool in such a case.
yes - this could be done using
Data -> Sort: