I'm trying to sort a Map by value using Scala but no luck any help will be appreciable. "null value can be any order"
Input:
Map(dkd-> 2, dtes-> 3,test-> 4, dstl-> null,tsst-> null, tetd-> null ,est1-> 1)
Output
Map(est1-> 1, dkd-> 2, dtes-> 3, test-> 4, tsst-> null, dstl-> null, tetd-> null)
or
Map(est1-> 1, dkd-> 2, dtes-> 3, test-> 4, dstl-> null, tetd-> null, tsst-> null)
or
Map(est1-> 1, dkd-> 2, dtes-> 3, test-> 4, tetd-> null, dstl-> null, tsst-> null)