arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

arraySortString

This section contains reference documentation for the arraySortString function.

Sorts array of strings.

hashtag
Signature

arraySortString('colName')

hashtag
Usage Examples

These examples are based on the .

FlightNum
sortedAirports
RandomAirports

PSC,SEA

SEA,PSC

5300

PSC,SEA

SEA,PSC

3846

PSC,SEA

SEA,PSC

3635

MSY,PHX,PSC,SEA

SEA,PSC,PHX,MSY

429

MSY,PHX,PSC,SEA

SEA,PSC,PHX,MSY

Hybrid Quick Start

1206

select FlightNum, 
       arraySortString(RandomAirports) AS sortedAirports, 
       RandomAirports
from airlineStats 
WHERE arraylength(RandomAirports) BETWEEN 2 AND 4
limit 5