sunpy / sunpy-soar

A sunpy plugin for accessing data in the Solar Orbiter Archive (SOAR).
https://docs.sunpy.org/projects/soar/
BSD 2-Clause "Simplified" License
17 stars 10 forks source link

Returned search results are not ordered by observation time #89

Closed wtbarnes closed 11 months ago

wtbarnes commented 1 year ago

Describe the bug

When searching the SOAR, the results are not ordered by observation time. I think most users would expect them returned in increasing order of observation time.

To Reproduce

q = Fido.search(
    attrs.Time('2022-10-24 19:00', '2022-10-24 19:00:30'),
    attrs.soar.Product('EUI-HRIEUV174-IMAGE'),
    attrs.Level(2),
)

gives

Results from 1 Provider:

6 Results from the SOARClient:

Instrument     Data product    Level        Start time       ...                         Filename                        Filesize           SOOP Name           
                                                             ...                                                          Mbyte                                 
---------- ------------------- ----- ----------------------- ... ------------------------------------------------------- -------- ------------------------------
       EUI EUI-HRIEUV174-IMAGE    L2 2022-10-24 19:00:20.171 ... solo_L2_eui-hrieuv174-image_20221024T190020171_V01.fits    5.694 R_SMALL_MRES_MCAD_AR-Long-Term
       EUI EUI-HRIEUV174-IMAGE    L2 2022-10-24 19:00:00.171 ... solo_L2_eui-hrieuv174-image_20221024T190000171_V01.fits    5.682 R_SMALL_MRES_MCAD_AR-Long-Term
       EUI EUI-HRIEUV174-IMAGE    L2 2022-10-24 19:00:05.171 ... solo_L2_eui-hrieuv174-image_20221024T190005171_V01.fits    5.665 R_SMALL_MRES_MCAD_AR-Long-Term
       EUI EUI-HRIEUV174-IMAGE    L2 2022-10-24 19:00:10.171 ... solo_L2_eui-hrieuv174-image_20221024T190010171_V01.fits    5.702 R_SMALL_MRES_MCAD_AR-Long-Term
       EUI EUI-HRIEUV174-IMAGE    L2 2022-10-24 19:00:15.170 ... solo_L2_eui-hrieuv174-image_20221024T190015170_V01.fits    5.702 R_SMALL_MRES_MCAD_AR-Long-Term
       EUI EUI-HRIEUV174-IMAGE    L2 2022-10-24 19:00:25.171 ... solo_L2_eui-hrieuv174-image_20221024T190025171_V01.fits    5.659 R_SMALL_MRES_MCAD_AR-Long-Term

Screenshots

No response

System Details

No response

Installation method

No response