Token sorting

Added sorting of machine and container tokens in the machine view.
@jaycee has set them to disabled when there are no machines/containers. I'll add a drive-by to fix the cursor.