sorting a list alphabetically is not sorting anything at all

前端 未结 0 1643
忘掉有多难
忘掉有多难 2021-02-04 02:59

I\'m trying to take a list of cars and sort them alphabetically.

So I found this method to sort:

let cars = this.state.cars;

cars.sort(function (a, b) {
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题