blob: ad79cffcd11f1b22aed294cf83f74d9b278d0c86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
"""
# Tests of the utils itercompat library.
>>> from django.utils.itercompat import sorted as compat_sorted
# Check the replacement version of sorted
>>> x = [5,1,4,2,3]
>>> y = compat_sorted(x)
>>> print y
[1, 2, 3, 4, 5]
>>> print x
[5, 1, 4, 2, 3]
"""
|