fix sporadic test failures in metric_spec
fix sporadic test failures in metric_spec

```
1) Metric as vmware with enabled and disabled targets
   executing perf_capture_timer should queue up enabled targets
     Failure/Error: expect(selected).to eq(expected)
```

this was failing because a sql select without an order is indeterminate

- pref match_array(Y) over eq(Y) when dealing with unknown sql ordering
- use (X).to match_array(Y) instead of (X.sort).to eq(Y.sort)
- use flat_map instead of collect {}.flatten
- keep perf capture type/interval pairs together for better testing
tinaafitz/manageiq,jvlcek/manageiq,NickLaMuro/manageiq,lpichler/manageiq,romanblanco/manageiq,matobet/manageiq,ManageIQ/manageiq,djberg96/manageiq,gerikis/manageiq,maas-ufcg/manageiq,syncrou/manageiq,mkanoor/manageiq,mkanoor/manageiq,tzumainn/manageiq,gmcculloug/manageiq,mzazrivec/manageiq,billfitzgerald0120/manageiq,andyvesel/manageiq,jrafanie/manageiq,jvlcek/manageiq,josejulio/manageiq,matobet/manageiq,hstastna/manageiq,ailisp/manageiq,skateman/manageiq,billfitzgerald0120/manageiq,jntullo/manageiq,maas-ufcg/manageiq,skateman/manageiq,maas-ufcg/manageiq,borod108/manageiq,agrare/manageiq,agrare/manageiq,aufi/manageiq,mzazrivec/manageiq,KevinLoiseau/manageiq,borod108/manageiq,chessbyte/manageiq,gmcculloug/manageiq,kbrock/manageiq,ailisp/manageiq,mkanoor/manageiq,agrare/manageiq,KevinLoiseau/manageiq,ilackarms/manageiq,KevinLoiseau/manageiq,yaacov/manageiq,romaintb/manageiq,tinaafitz/manageiq,jvlcek/manageiq,aufi/manageiq,matobet/manageiq,borod108/manageiq,jntullo/manageiq,ailisp/manageiq,israel-hdez/manageiq,billfitzgerald0120/manageiq,syncrou/manageiq,KevinLoiseau/manageiq,NaNi-Z/manageiq,skateman/manageiq,israel-hdez/manageiq,djberg96/manageiq,romaintb/manageiq,maas-ufcg/manageiq,mzazrivec/manageiq,agrare/manageiq,romanblanco/manageiq,branic/manageiq,israel-hdez/manageiq,NickLaMuro/manageiq,fbladilo/manageiq,israel-hdez/manageiq,NaNi-Z/manageiq,mfeifer/manageiq,kbrock/manageiq,juliancheal/manageiq,romanblanco/manageiq,mresti/manageiq,borod108/manageiq,NickLaMuro/manageiq,mresti/manageiq,jrafanie/manageiq,maas-ufcg/manageiq,fbladilo/manageiq,mresti/manageiq,KevinLoiseau/manageiq,NickLaMuro/manageiq,syncrou/manageiq,mfeifer/manageiq,josejulio/manageiq,d-m-u/manageiq,romaintb/manageiq,djberg96/manageiq,durandom/manageiq,durandom/manageiq,jrafanie/manageiq,djberg96/manageiq,branic/manageiq,d-m-u/manageiq,skateman/manageiq,chessbyte/manageiq,jameswnl/manageiq,romaintb/manageiq,durandom/manageiq,NaNi-Z/manageiq,josejulio/manageiq,yaacov/manageiq,romaintb/manageiq,jntullo/manageiq,hstastna/manageiq,andyvesel/manageiq,gmcculloug/manageiq,juliancheal/manageiq,jameswnl/manageiq,ailisp/manageiq,ilackarms/manageiq,durandom/manageiq,branic/manageiq,jrafanie/manageiq,tinaafitz/manageiq,tinaafitz/manageiq,gerikis/manageiq,kbrock/manageiq,romanblanco/manageiq,lpichler/manageiq,mresti/manageiq,pkomanek/manageiq,lpichler/manageiq,jameswnl/manageiq,mzazrivec/manageiq,juliancheal/manageiq,pkomanek/manageiq,josejulio/manageiq,fbladilo/manageiq,tzumainn/manageiq,ManageIQ/manageiq,lpichler/manageiq,andyvesel/manageiq,pkomanek/manageiq,tzumainn/manageiq,chessbyte/manageiq,maas-ufcg/manageiq,d-m-u/manageiq,yaacov/manageiq,tzumainn/manageiq,mkanoor/manageiq,ilackarms/manageiq,yaacov/manageiq,NaNi-Z/manageiq,matobet/manageiq,aufi/manageiq,hstastna/manageiq,gerikis/manageiq,syncrou/manageiq,gerikis/manageiq,gmcculloug/manageiq,juliancheal/manageiq,jvlcek/manageiq,jntullo/manageiq,romaintb/manageiq,andyvesel/manageiq,fbladilo/manageiq,mfeifer/manageiq,ilackarms/manageiq,mfeifer/manageiq,d-m-u/manageiq,kbrock/manageiq,ManageIQ/manageiq,branic/manageiq,KevinLoiseau/manageiq,jameswnl/manageiq,hstastna/manageiq,billfitzgerald0120/manageiq,ManageIQ/manageiq,pkomanek/manageiq,chessbyte/manageiq,aufi/manageiq