Skip to content

Commit

Permalink
Merge pull request #420 from Expensify/chirag-orderby-consistency
Browse files Browse the repository at this point in the history
Orderby consistency
  • Loading branch information
Julesssss authored Sep 9, 2020
2 parents 0b05f6a + e299fb3 commit 8860f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/page/home/sidebar/SidebarLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import {View} from 'react-native';
import _ from 'underscore';
import PropTypes from 'prop-types';
import orderBy from 'lodash.orderby';
import lodashOrderby from 'lodash.orderby';
import styles from '../../../style/StyleSheet';
import Text from '../../../components/Text';
import SidebarLink from './SidebarLink';
Expand Down Expand Up @@ -58,7 +58,7 @@ class SidebarLinks extends React.Component {
render() {
const {reports, onLinkClick} = this.props;
const reportIDInUrl = parseInt(this.props.match.params.reportID, 10);
const sortedReports = orderBy(this.props.reports, ['pinnedReport', 'reportName'], ['desc', 'asc']);
const sortedReports = lodashOrderby(this.props.reports, ['pinnedReport', 'reportName'], ['desc', 'asc']);

// Filter the reports so that the only reports shown are pinned, unread, and the one matching the URL
// eslint-disable-next-line max-len
Expand Down

0 comments on commit 8860f26

Please sign in to comment.