Question

Write a function to sort list of numbers according to chronological order of digits?

Login to Submit

Examples

Input: [2, 1]
Output: [1, 2]

Input: [42, 2, 23, 41]
Output: [2, 23, 41, 42]