Processes list: add sorting

When running many processes it would be useful to be able to sort them by things such as memory usage, name and cpu usage.