convert sort dialog to .ui format

Change-Id: I9c82b504df0879c338f1858b16ed70a91d459e02
remove the rather mad ifdef impl hiding

Change-Id: I0885a9b04adbb18ce4a5f84565dd1c2f0165953a
CID#1130380 (unlikely) invalid iterator use

Change-Id: I09b7186ce395eb8d32bb9604aeaa26fe2243eed1
CID#703891 RubyDialog::GetText orthogonal to Dialog::GetText

Change-Id: I131daae13b11b5242e9a32a94532463f6e0d925b