Token sorting

Added sorting of machine and container tokens in the machine view.
I have no idea what "size" means, so I've made up something here that is probably not correct.