By default, all entries are sorted depending on the time of their creation. But you can add any sorting rule you need. To sort the entries inside the Library, go to Library Settings, tap More submenu and choose Sort item there:
You can choose one or several fields to sort by and define whether the sorting should be ascending or descending.