Skip to content

Commit

Permalink
vsDB fix for numeric sort v1
Browse files Browse the repository at this point in the history
  • Loading branch information
ggodart committed Jan 8, 2021
1 parent 4998c5c commit ece56ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/vsDB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,11 @@ sub Sort {
# obj->Sort($field);
# if $field is ommited, or an invalid fieldname is used, defaults to
# the left-most column.

# $sortMode 0 = alpha ascending, 1 = alpha descending, 2 = numeric ascending, 3 = numeric descending

my ($this) = shift;
my ($fieldName) = shift || '0';
my ($desc) = shift || '0';
my ($sortMode) = shift || '0';
my ($delimiter) = $this->{'delimiter'};

# can't append once we've changed the sort order
Expand Down

0 comments on commit ece56ec

Please sign in to comment.