const a=[{id:1},{id:5},{id:7},{id:6}]
const b=[{id:7},{id:2},{id:5},{id:9}]
//Merge and sort in single array of object based on unique value
Expected Output: [{id:1},{id:2},{id:5},{id:6},{id:7},{id:9}]
Tried merging first and sorting not able to get desired result Thanks in Advance