intel / wds

Wireless Display Software For Linux OS (WDS)
https://01.org/wds
GNU Lesser General Public License v2.1
511 stars 104 forks source link

Fix video format sorting function #191

Open peat-psuwit opened 4 years ago

peat-psuwit commented 4 years ago

Commit 18e54e7dcf4e0a20fc5e220f68626ea7246854d9 (Fix video formats handling code) converts "operator <" to sort comparison function itself. However, it doesn't invert the operator inside it. This means now video formats are sorted from small to large instead of from large to small.

This commit inverts the operator inside the function, so that it now sort correctly.