I am getting huge data in the form of a table from database. first column containd unique ID and third column contains some other id. this data is stored in a file now I want to arrange this data based on the first column id (unique id). Is there any in built library or module that can help

I understand that you want to sort the data according to the first column, which contains unique IDs. A simple sort (the default ASCIIbetical sort) should do it, without the need of a Schwarzian Transform.