OSRA-178: Allow ordering of orphans by attributes during sponsorship creation

contains OSRA-213, OSRA-214, OSRA-215 excluding OSRA-216
Please fix indentations above