Pregunta de entrevista de IPSY

Sort an array of bags with unstructured data.