clientside sort order removed

This commit is contained in:
petkir 2020-07-15 23:04:22 +02:00
parent d9ec64eb97
commit 00b438d60e
1 changed files with 0 additions and 4 deletions

View File

@ -354,10 +354,6 @@ export default class CalendarFeedSummary extends React.Component<ICalendarFeedSu
try {
let events = await dataProvider.getEvents();
if (!!events && events.length > 0) {
// order result bacause not every Dataprovider Support Order
events = events.sort((a: ICalendarEvent, b: ICalendarEvent) => { return a.start > b.start ? 1 : - 1; });
}
if (dataProvider.MaxTotal > 0) {
events = events.slice(0, dataProvider.MaxTotal);
}