Skip to content

Commit

Permalink
update sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Oct 21, 2013
1 parent 1088486 commit c9e2df8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/sorting.md
Expand Up @@ -6,3 +6,14 @@ A basic sorting
```
list = sort (a,b) -> { a <=> b } list
```

compiles to:

```php
function __sort1($a, $b) {
if ( $a == $b ) {
return 0;
}
return ( $a < $b ) ? -1 : 1;
}
```

0 comments on commit c9e2df8

Please sign in to comment.