Promact / md2

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Collapse, Colorpicker, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
http://code.promactinfo.com/md2/
MIT License
379 stars 112 forks source link

md2 data table not sorting data in asc or desc order when sortOrder is specified #296

Open nihareddy opened 6 years ago

nihareddy commented 6 years ago

Bug, feature request, or proposal:

Bug

What is the expected behavior?

<table [md2Data]="data | viewServiceRequestdataPipe : search" #md2="md2DataTable" [rowsPerPage]="10" [sortOrder]="desc" > is supposed to align data in desc order.

What is the current behavior?

Not aligning data in descending order while rendering data.

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue. Plunker template: http://plnkr.co/edit/rQmUz8WYRh5Vz4gwY8E4?p=info

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, MD2, OS, browsers are affected?

@angular/cli: 1.2.1 node: 7.7.3 os: win32 x64 @angular/animations: 4.2.6 @angular/cdk: 2.0.0-beta.8 @angular/common: 4.2.6 @angular/compiler: 4.2.6 @angular/core: 4.2.6 @angular/flex-layout: 2.0.0-rc.1 @angular/forms: 4.2.6 @angular/http: 4.2.6 @angular/material: 2.0.0-beta.8 @angular/platform-browser: 4.2.6 @angular/platform-browser-dynamic: 4.2.6 @angular/router: 4.2.6 @angular/cli: 1.2.1 @angular/compiler-cli: 4.2.6 @angular/language-service: 4.2.6 "md2": "0.0.25",

Is there anything else we should know?