Fixed a bug in the order of sort for button lists