I need to find 4 values in this order in a array of object:
- lowest x & y 
- highest x and lowest y 
- highest x & y 
- highest y & lowest x 
my object is like this :
   object: [
            {id: 1, x: 160, y: 160},
            {id: 2, x: 192, y: 160},
            {id: 3, x: 224, y: 160},
            {id: 4, x: 224, y: 192},
            {id: 5, x: 192, y: 192},
            {id: 6, x: 160, y: 192},
            {id: 7, x: 160, y: 224},
            {id: 8, x: 192, y: 224},
            {id: 9, x: 224, y: 224}
           ],
the result must be an array with those 4 object .
Thanks
 
    