Search ('all' for everything):
Search results:
N^N — compute exponential
!x — generate values
&allocated — cumulative allocation
&ascii — ASCII characters
&clock — time of day
&collections — garbage collections
&cset — all characters
&current — current co-expression
&date — date
&dateline — date and time of day
&digits — digits
&dump — set termination dump
&e — base of natural logarithms
&error — set error conversion
&errornumber — number of last error
&errortext — description of last error
&errorvalue — value causing last error
&errout — standard error output
&fail — failure
&features — implementation features
&file — source file
&host — host system
&input — standard input
&lcase — lowercase letters
&letters — letters
&level — procedure level
&main — main co-expression
&null — null value
&output — standard output
&phi — golden ratio
&pi — pi
&pos — scanning position
&progname — program name
&random : i — random seed
&regions — storage regions
&source — source co-expression
&storage — storage utilization
&subject — subject of scanning
&time — elapsed time
&ucase — uppercase letters
&version — Icon version
+N — compute positive
-N — compute negative
.x — dereference variable
/x — check for null value
=s — match string in scanning
?x — generate random value
@C — activate co-expression
[x1, …] — create list
\x — check for non-null value
^C1 — create refreshed co-expression
abs — compute absolute value
acos — compute arc cosine
any — locate initial character
args — get number of procedure arguments
asin — compute arc sine
atan — compute arc tangent
bal — locate balanced characters
break — break out of loop
case of — select according to value
center — position string at center
char — produce character
chdir — change directory
close — close file
collect — perform garbage collection
copy — copy value
cos — compute cosine
create — create co-expression
cset — convert to cset
delay — delay execution
delete — delete element
detab — replace tabs by blanks
display — display co-expression variables
dtor — convert degrees to radians
entab — replace blanks by tabs
errorclear — clear error indication
every do — generate every result
exit — exit program
exp — compute exponential
expr & expr — evaluate in conjunction
expr \ i — limit generator
expr1 | expr2 — evaluate alternatives
fail — fail from procedure
find — find string
flush — flush output
function — generate function names
get — get value from list
getch — get character
getche — get and echo character
getenv — get value of environment variable
i to i by i — generate integers in sequence
iand — compute bitwise AND
icom — compute bitwise complement
if then else — select according to outcome
image — produce string image
insert — insert element
integer — convert to integer
ior — compute bitwise inclusive OR
ishift — arithmetic shift bits
ixor — compute bitwise exclusive OR
kbhit — check for keyboard character
key — generate keys from table
left — position string at left
link — reference ICON module
list — create list
loadfunc — load external function
log — compute logarithm
L|||L — concatenate lists
many — move scanning position
map — map characters
match — match initial string
member — test for membership
move — move scanning position
N%N — compute remainder
N+N — compute sum
N/N — compute quotient
N1∗N2 — compute product
N<=N — numerically less than or equal
N<N — numerically less than
N=N — numerically equal
N>=N — numerically greater than or equal
N>N — numerically greater than
name — produce name
next — go to beginning of loop
not — invert failure
numeric — convert to numeric
N~=N — numerically not equal
N–N — compute difference
open — open file
ord — produce ordinal
pop — pop from list
pos — test scanning position
proc — convert to procedure
pull — pull from list
push — push onto list
put — put onto list
R.f — get field of record
read — read line
reads — read string
real — convert to real
remove — remove file
rename — rename file
repeat — evaluate repeatedly
repl — replicate string
return — return from procedure
reverse — reverse string
right — position string at right
rtod — convert radians to degrees
runerr — terminate with run-time error
s ? expr — scan string
s<<=s — lexically less than or equal
s<<s — lexically less than
s==s — lexically equal
s>>=s — lexically greater than or equal
s>>s — lexically greater than
seek — seek to position in file
seq — generate sequence of integers
serial — produce serial number
set — create set
sin — compute sine
sort — sort structure
sortf — sort structure by field
sqrt — compute square root
stop — stop execution
string — convert to string
suspend do — suspend from procedure
system — call system function
s||s — concatenate strings
s~==s — lexically not equal
tab — set scanning position
table — create table
tan — compute tangent
trim — trim string
type — produce type name
until do — loop until result
upto — locate characters
v op:=x — augmented assignment
v:=:v — exchange values
v:=x — assign value
v<–>v — exchange values reversibly
v<–x — assign value reversibly
variable — produce variable
where — produce position in file
while do — loop while result
write — write line
writes — write string
x!X — process argument list
x(x,…) — function call
x++x — compute cset or set union
x===x — value equal
x@C — transmit value to co-expression
x[i+:i] — produce substring or list section
x[i-:i] — produce substring or list section
x[i:i] — produce substring or list section
x[x, …] — multiple subscript
x[x] — subscript
x{x,…} — process argument list as co-expressions
x~===x — value not equal
x––x — compute cset or set difference
x∗∗x — cset or set intersection
|expr — evaluate repeatedly
~c1 — compute cset complement
∗x — compute size

Index of Function Types:
affects &pos
character sets
co-expressions
control structures
file processing
generators
infix operations
keywords
lists, sets and tables
math
metadata
output formatting
pattern matching
prefix operations
records
strings
windows and keyboards

Index of Subsystems:
base
digitcnt.icn
SNOBOL4 functions
 
sort structure by field
 
Description

L sortf(X, i)
sortf(X, i) produces a sorted list of the values from the record, list or set, X.

List and record values in X are ordered by comparing the values of their ith fields. The value of i can be negative but not zero. Two structure values in X having equal ith fields are ordered as they would be in regular sorting, but structures lacking an ith field appear before structures having them.
 
Parameters
X
list, set or record
i
1 based field number
L
sorted elements of X
 
Defaults
i
1
 
Errors
101 i is not an integer
125 X is not list, set or record
205 i = 0
 
See Also
  • sort — sort structure