mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	git-svn-id: http://code.djangoproject.com/svn/django/trunk@7914 bcc190cf-cafb-0310-a4f2-bffc1f526a37
		
			
				
	
	
		
			15 lines
		
	
	
		
			No EOL
		
	
	
		
			260 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			No EOL
		
	
	
		
			260 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""
 | 
						|
# 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]
 | 
						|
 | 
						|
""" |