Pergunta de entrevista da empresa Susquehanna International Group

Write a method in pseudo-code that sorts any input by its data type.