[ATFT] Bug fix: mapped device not shown correctly.

Fix a bug that would cause mapped device to be hidden when the
mapped device location is not in ascending order. For example, slot
1 is mapped to device location 2, and slot 2 is mapped to device
location 1.

Tests: Added unit test testPrintTargetDevicesMultipleDeviceModeReverseOrder
to cover this case. Failed before the change and succeed afterwards.
Bug: b/123679718
2 files changed