Pergunta de entrevista da empresa Infosys

How will you sort a HashMap based on keys.