{{Sorting Algorithm}}

;Task:
Given an integer &nbsp; '''n''', &nbsp; return &nbsp; '''1──►n''' &nbsp; (inclusive) &nbsp; in lexicographical order.


Show all output here on this page.


;Example:
Given &nbsp; '''13''',
<br>return: &nbsp; '''[1,10,11,12,13,2,3,4,5,6,7,8,9].'''
<br><br>

