numeric

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
numeric
Summary

Used with the sort and sort container commands, to sort numbers as a unit, not as a sequence of characters.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
sort cards numeric by field "Social Security Number"
RelatedCommand: sort, sort container
Glossary: keyword, command, container, sort
Keyword: characters, text, field, numeric
Description

Use the numeric keyword when sorting by a field or portion of a container that is a number.

Alphabetical sorting does not take into account the special format of numbers with more than one digit. For example, a normal sort places 72 after 1280, because the first digit of 72 is greater than the first digit of 1280 (7 is greater than 1). The numeric keyword sorts numbers in numeric order, rather than alphabetical order.

Tagsdatabase