Convert display order dialog into DialogFragment

See previous PR #365.