KitWallace / gloucesterroad

History of shops in Gloucester Road
0 stars 0 forks source link

Ordering by premise number #39

Closed KitWallace closed 2 years ago

KitWallace commented 9 years ago

The 'number' is not really a number - it may contains letters and hyphens,maybe residual commas. When ordering casually we need to extract just the leading digits and treat as a number so 20 comes before 100 [ordering in the road view is explicitly via the premise file]

KitWallace commented 6 years ago

ordering using this code has been added to the full occupant listing

let $n := number (tokenize($occupant/number,"\D")[1])) and to sort them by side use $n mod 2

KitWallace commented 6 years ago

Order is explicit in the premise file, so this is used rather than trying to infer the site from road or number or patch data