AppsFlyer interview question

Sort a dictionary alphabetically with an inner order