comparison runtime/doc/eval.txt @ 6032:b8f703a4e55f

Updated runtime files. Overhauled HTML indent script.
author Bram Moolenaar <bram@vim.org>
date Fri, 04 Jul 2014 16:43:17 +0200
parents 7b83c190d370
children 0efec12f52ac
comparison
equal deleted inserted replaced
6031:65e33fdac4ae 6032:b8f703a4e55f
1 *eval.txt* For Vim version 7.4. Last change: 2014 Jun 25 1 *eval.txt* For Vim version 7.4. Last change: 2014 Jul 02
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
5649 smaller if the first one sorts before the second one. 5649 smaller if the first one sorts before the second one.
5650 5650
5651 {dict} is for functions with the "dict" attribute. It will be 5651 {dict} is for functions with the "dict" attribute. It will be
5652 used to set the local variable "self". |Dictionary-function| 5652 used to set the local variable "self". |Dictionary-function|
5653 5653
5654 The sort is stable, items which compare equal (as number or as
5655 string) will keep their relative position. E.g., when sorting
5656 on numbers, text strings will sort next to eachother, in the
5657 same order as they were originally.
5658
5654 Also see |uniq()|. 5659 Also see |uniq()|.
5655 5660
5656 Example: > 5661 Example: >
5657 func MyCompare(i1, i2) 5662 func MyCompare(i1, i2)
5658 return a:i1 == a:i2 ? 0 : a:i1 > a:i2 ? 1 : -1 5663 return a:i1 == a:i2 ? 0 : a:i1 > a:i2 ? 1 : -1