Here you can find the source of sortedTable(Map
public static Map<String, Object> sortedTable(Map<String, Object> map)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static Map<String, Object> sortedTable(Map<String, Object> map) { if (map != null) { return new TreeMap<String, Object>(map); } else {//from w w w . j av a2 s . co m return new TreeMap<String, Object>(); } } }