Pregunta de entrevista de Infobean

Write code to sort dictionary without using any inbuilt function?