Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Grouping reverses order

Open
#187 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
angular, javascript
Domain
frontend

Research direction

Look at the groupBy filter implementation in the angular-filter library, likely in a file like src/groupBy.js or similar. The issue is that grouping reverses the original array order. Start by examining the current sorting logic in the groupBy function. Write a test to reproduce the order issue, then modify the filter to preserve the original order. Check existing tests for groupBy to ensure changes don't break existing functionality.

Written by the indexing model from the issue text.

Description

Hello i notice that if i use groupBy function from Your filter, it reverses the original order of the initial array.

Can you tell me if it is possible to use something like groupBy: 'ID' and then reverse?

Dominant language
JavaScript
Stars
2.9k
Forks
319
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from a8m/angular-filter

All issues in a8m/angular-filter

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.