Added ability to sort display modes and prevent duplicate display modes from appearing.