Added support for sorting lists by different parameters. Added support for deadline, priority, energy etc.