Use stable_sort to sort media capture devices according the fitness distance
<rdar://problem/107735578>
Pull request: https://github.com/WebKit/WebKit/pull/12493
Committed 262718@main (3b5080a826ee): <https://commits.webkit.org/262718@main> Reviewed commits have been landed. Closing PR #12493 and removing active labels.