sort: check global flags on fallback sort
authorBartosz Golaszewski <bartekgola@gmail.com>
Sun, 19 Jan 2014 08:10:14 +0000 (09:10 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 19 Jan 2014 08:10:14 +0000 (09:10 +0100)
commit5c13ab41bb9472b792797a339f93a3a3ca62fd7a
tree864ee45c1fec26cd160dce0bbbb95e1a95f6e27f
parent1a4d9f652169afa08680d3ff2c2cf9efa2a76a1b
sort: check global flags on fallback sort

Sort now performs global reverse on fallback sort if -r is set. Before
only key local flags were checked.

function                                             old     new   delta
compare_keys                                         712     738     +26

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/sort.c
testsuite/sort.tests