Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

Commit

Permalink
Note brilliant idea for making pinned groups conflict less is not so …
Browse files Browse the repository at this point in the history
…brilliant
  • Loading branch information
markpasc committed Feb 21, 2009
1 parent 3e83fe3 commit 46cac9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/Order/lib/Order/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ sub tag_order {
# Inject the pinned groups from first place (0) to last (-1).
for my $i (sort _sort_group_ids keys %groups) {
my $items = $groups{$i};
# TODO: sort and join the group, so it splices as one item, disrupting
# the next groups less? but then they only count as one item for
# offsets and limits.
if ($i >= 0) {
splice @objs, $i, 0, $sort->(@$items);
}
Expand Down

0 comments on commit 46cac9e

Please sign in to comment.