Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sortListUsingIdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def findIdxMin(lst,idxlb=0,idxub=len(lst)-1):
input parameters:
lst: list of elements
output: minimum element of the list

'''
if idxlb==idxub:
return idxlb
Expand All @@ -21,6 +22,7 @@ def sortList(lst,lb=0,idxminm=findIdxMin(lst)):
input parameters:
lst: list of elements
output: sorted list

'''
if lb<len(lst)-1:
if lst[lb]!=lst[idxminm]:
Expand Down