If your file consists of lines with some data, you can sort it using various options. The range is automatically selected depending on whether you sort an whole document or only a selection.

To open Sort dialog: select Tools | Sort main menu item.

You can set sorting parameters and execute sorting such as: