I have two JavaScript objects:

```
var list = [];
list.push({'xid':'12345@kvm.dooth.com'});
list.push({'xid':'6789@kvm.dooth.com'});
list.push({'xid':'1357@kvm.dooth.com'});
list.push({'xid':'2468@kvm.dooth.com'});

var recent = [];
recent.push({'12345@kvm.dooth.com':3});
recent.push({'1357@kvm.dooth.com':1});
recent.push({'2468@kvm.dooth.com':2});

```

I need to sort `list` object using `recent` object. I am expecting an output like:

```
[{
  'xid': '1357@kvm.dooth.com'
}, {
  'xid': '2468@kvm.dooth.com'
}, {
  'xid': '12345@kvm.dooth.com'
}, {
  'xid': '6789@kvm.dooth.com'
}]

```