summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sort.c b/src/sort.c
index e359bbbc9..9379440b3 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -1445,6 +1445,10 @@ set_ordering (s, key, blanktype)
break;
case 'n':
key->numeric = 1;
+ if (blanktype == bl_start || blanktype == bl_both)
+ key->skipsblanks = 1;
+ if (blanktype == bl_end || blanktype == bl_both)
+ key->skipeblanks = 1;
break;
case 'r':
key->reverse = 1;