Added example python code for sort