JSFiddle - React, Tailwind, and code Playground

by HemalathaThanigaivel

JavaScript

let objs = {value1: ['12', 11], value2: ['12', 1] }
let employees = [objs]
employees.sort(function(a, b){
console.log(a)
    return a['value1'][1]-b['value2'][1]
})

//console.log(employees)