/** Nested modules */ import { Generic } from "cmf.core/src/core"; /** Angular */ import { PipeTransform } from "@angular/core"; /** * sort Converter * * This converter allows to sort any array. * Important note for the args: * * The argument is a string that will say which attribute will be used to filter and it's sort type. * separated by ','. * Example: "name:ASC,id:desc" the argument will sort the array firstly by name * in ascendent order and then by id in descendent order * * ## Example * * ```html * {{obj | cmfSort}} * ``` */ export declare class Sort extends Generic implements PipeTransform { transform(value: any[], args: string[]): any[]; /** * Compare 2 object * @param first first object to compare * @param second second object to compare * @param orderField field. Ex: "name:asc" */ compare(first: any, second: any, orderField: any): any; } export declare class SortModule { }