[backport] fix #13352

This commit is contained in:
narimiran 2020-02-07 18:26:08 +01:00
commit 36d1ad39d0
2 changed files with 6 additions and 1 deletions

View file

@ -31,7 +31,9 @@
## (year: 2010, name: "Jane")] ## (year: 2010, name: "Jane")]
## ##
## proc myCmp(x, y: People): int = ## proc myCmp(x, y: People): int =
## if x.name < y.name: -1 else: 1 ## if x.name < y.name: -1
## elif x.name == y.name: 0
## else: 1
## ##
## # Sorting with custom proc ## # Sorting with custom proc
## a.sort(myCmp) ## a.sort(myCmp)

View file

@ -7,6 +7,9 @@
# distribution, for details about the copyright. # distribution, for details about the copyright.
# #
## This is a part of ``system.nim``, you should not manually import it.
include inclrtl include inclrtl
import formatfloat import formatfloat