How to sort list of doubles by the fractional part of the double.
E.g: For input <1.2, 2.3, 1.12, 5.1>, after sorting, the output
should be <5.1, 1.12, 1.2, 2.3>
How to sort list of doubles by the fractional part of the double.
E.g: For input <1.2, 2.3, 1.12, 5.1>, after sorting, the output
should be <5.1, 1.12, 1.2, 2.3>