React : How to sort data in asc and desc in ReactJS
问题 I am showing data through API ( Data is showing in Pagination ) , API were built in Loopback . I want to sort in my project . For example if User click on Table head attribute then It will sort data in asc and desc . I am new ReactJS don't have much knowledge to implement this logic, Could someone please help me to figure out . Thanks Code class Example extends React.Component { constructor(props) { super(props); this.state = { Item: 5, skip: 0 } this.handleClick = this.handleClick.bind(this)