Jan-24-2017, 08:55 AM
In [11]: x = ['a','b','c','d','e','f'] In [12]: x = x*2 In [13]: x Out[13]: ['a', 'b', 'c', 'd', 'e', 'f', 'a', 'b', 'c', 'd', 'e', 'f'] In [14]: x.sort() In [15]: x Out[15]: ['a', 'a', 'b', 'b', 'c', 'c', 'd', 'd', 'e', 'e', 'f', 'f']