Here key is a string and value is a list of string. The longest list should come first and shortest at last.
Dictionary<string, List<string>> InputDictionary = {‘A’:[A1, A2, A3, A4], ‘B’:[B1, B2], ‘C’:[C1, C2, C3]}
Output has to be
output = {‘A’:[A1, A2, A3, A4], ‘C’:[C1, C2, C3], ‘B’:[B1, B2]} based on value length.
Please reply.