DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
Sort python list by first element
>>>
lis
=
[
[
1
,
4
,
7
]
,
[
3
,
6
,
9
]
,
[
2
,
59
,
8
]
]
>>>
lis
.
sort
(
)
>>>
lis
[
[
1
,
4
,
7
]
,
[
2
,
59
,
8
]
,
[
3
,
6
,
9
]
]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Sort
#python
#list
#element
ADD COMMENT
Topic
COMMENT
Name
7+7 =
Submit