Fixed sorting to make sure Assets are first, and that Liabilities will
come right after that.
This commit is contained in:
parent
bf675718db
commit
9095dad4f0
1 changed files with 3 additions and 1 deletions
|
@ -69,7 +69,9 @@ foreach my $acct (
|
||||||
# Proper sorting for a chart of accounts
|
# Proper sorting for a chart of accounts
|
||||||
sort {
|
sort {
|
||||||
if ($a =~ /^Assets/ and $b !~ /^Assets/) {
|
if ($a =~ /^Assets/ and $b !~ /^Assets/) {
|
||||||
return 1;
|
return -1;
|
||||||
|
elsif ($a =~ /^Liabilities/ and $b !~ /^Liabilitie/) {
|
||||||
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
return $a cmp $b;
|
return $a cmp $b;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue