From a65300ed490d7f37684f7ea09228c6be0d5c90fe Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Tue, 17 Jan 2017 02:53:26 +0100 Subject: [PATCH] Typo in a comment. --- lslopt/lslbasefuncs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index f2e093c..368f1f3 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -1364,12 +1364,12 @@ def llListSort(lst, stride, asc): if tb == Vector: b = v2f(b) gt = not (a <= b[0]*b[0] + b[1]*b[1] + b[2]*b[2]) - # (note NaNs compare as > thus the reversed condition!) + # (note NaNs compare as > thus the reversed condition!) elif tb != Quaternion: if broken and tb in (unicode, Key): b = b.encode('utf-32-be') - gt = not (a <= b) # float integer, string, key all compare with this - # (note NaNs compare as > thus the reversed condition!) + gt = not (a <= b) # float, integer, string, key all take this branch + # (note NaNs compare as > thus the reversed condition!) if gt ^ (asc != 1): # swap lst[i:i+stride],lst[j:j+stride] = lst[j:j+stride],lst[i:i+stride]