help sort() says:
> When {func} is omitted, is empty or zero, then sort() uses the
> string representation of each item to sort on. Numbers sort
> after Strings, |Lists| after Numbers. For sorting text in the
> current buffer use |:sort|.
But not work with zero.
diff --git a/src/eval.c b/src/eval.c
index a208b2a..40b9f64 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -19192,7 +19192,9 @@ do_sort_uniq(typval_T *argvars, typval_T *rettv, int
sort)
i = get_tv_number_chk(&argvars[1], &error);
if (error)
goto theend; /* type error; errmsg already given */
- if (i == 1)
+ if (i == 0)
+ info.item_compare_ic = FALSE;
+ else if (i == 1)
info.item_compare_ic = TRUE;
else
info.item_compare_func = get_tv_string(&argvars[1]);
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.