sort library mapping in the HTML