The 1 st element of the list index = 0, the 2 nd element’s index = 1, the 3 rd element’s index = 2, etc. Apex has the three types of collections: 1.List 2.Set 3.Map. Map gd = Schema.getGlobalDescribe(); 2. describeSObjects(sObjectTypes) ... First we have to write an Apex Controller to fetch a list of all objects and after that use this Controller in the VF page to display a … The easiest way to do it is using bubble sort. String in Apex, as in any other programming language, is any set of characters with no character limit. Each item in a map has two parts: a key and a value, known as a key-value pair. If you need to keep your structure as a List