-
Notifications
You must be signed in to change notification settings - Fork 1
Tutorial: Sort Order
molarmanful edited this page Nov 4, 2023
·
5 revisions
When performing comparisons, sclin decides sort order as follows:
UN$F- Noncomparable falsy values
- Comparable values:
-
NUMs andDBLs compare numerically. -
STR-like andSEQ-like types:- Falsy values equal
NUM(0)during comparison. - Other values compare lexicographically.
- Falsy values equal
- With mixed-type comparisons,
STR-like/SEQ-like values take precedence (i.e.NUMs/DBLs convert accordingly). - Other types convert to
$Tor$Fdepending on their truthiness.
-
- Noncomparable truthy values
$T
Made with ❤️ by Ben Pang (@molarmanful).