+
+ keys.sort(function(a, b) {
+ return response[a]['num'] - response[b]['num'];
+ });
+
+ for (const p of keys) {
+ let li = document.createElement('li');
+ li.innerHTML = "<strong>" + p + ":</strong> " + response[p].raw_text;
+ ul.appendChild(li);
+ }