Git Product home page Git Product logo

Comments (15)

nerumo avatar nerumo commented on July 3, 2024 5

@VadimDez can you have a look at the PR?

from ngx-order-pipe.

hardcorelite avatar hardcorelite commented on July 3, 2024 3

npm i ngx-pipes

from ngx-order-pipe.

btxtiger avatar btxtiger commented on July 3, 2024 2

@nerumo This is a quickfix for most usecases.
I would rather takeover this repo, since the original author is not answering anymore. However if I get some time soon, I'll otherwise create a new library for this.

from ngx-order-pipe.

VadimDez avatar VadimDez commented on July 3, 2024 1

Fixed by version 3.0.0

from ngx-order-pipe.

stale avatar stale commented on July 3, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from ngx-order-pipe.

btxtiger avatar btxtiger commented on July 3, 2024

image

Now its breaking with Angular 16. If it's not yet, just delete your node_modules folder followed by reinstalling npm and try to compile again. I'm dropping this library

from ngx-order-pipe.

stormbreakR1 avatar stormbreakR1 commented on July 3, 2024

Anyone who have faced this same issue and found any replacement, plz do share as authors of this plugin is not publishing any update for ivy.

from ngx-order-pipe.

btxtiger avatar btxtiger commented on July 3, 2024

@stormbreakR1 is super simple to create a custom pipe and use lodash orderBy or lodash sortBy for sorting. This way you could also keep the type if you implement it as generic

from ngx-order-pipe.

stormbreakR1 avatar stormbreakR1 commented on July 3, 2024

@btxtiger thanks

from ngx-order-pipe.

stale avatar stale commented on July 3, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from ngx-order-pipe.

reda-alaoui avatar reda-alaoui commented on July 3, 2024

🙏

from ngx-order-pipe.

stale avatar stale commented on July 3, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from ngx-order-pipe.

nerumo avatar nerumo commented on July 3, 2024

still a problem

from ngx-order-pipe.

btxtiger avatar btxtiger commented on July 3, 2024

@nerumo
npm i -S lodash-es

import { Pipe, PipeTransform } from '@angular/core';
import { orderBy as _orderBy } from 'lodash-es';

@Pipe({
   name: 'orderBy',
   standalone: true,
})
export class NgxOrderPipe<T> implements PipeTransform {
   transform(data: T[], orderBy: string, direction: 'asc' | 'desc' = 'asc'): T[] {
      return _orderBy(data, orderBy, direction);
   }
}

from ngx-order-pipe.

nerumo avatar nerumo commented on July 3, 2024

@nerumo
npm i -S lodash-es

import { Pipe, PipeTransform } from '@angular/core';
import { orderBy as _orderBy } from 'lodash-es';

@Pipe({
   name: 'orderBy',
   standalone: true,
})
export class NgxOrderPipe<T> implements PipeTransform {
   transform(data: T[], orderBy: string, direction: 'asc' | 'desc' = 'asc'): T[] {
      return _orderBy(data, orderBy, direction);
   }
}

If this is the course of action you suggest, then this repository should be archived

from ngx-order-pipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.