@@ -85,7 +85,12 @@ function gtag() {
8585
8686 <label for="theme">Theme</label>
8787 <select class="param" id="theme" name="theme">
88- <?php foreach ($ THEMES as $ theme => $ options ): ?>
88+ <?php
89+
90+ //added sort in alphabetical order
91+ ksort ($ THEMES , SORT_NATURAL | SORT_FLAG_CASE );
92+
93+ foreach ($ THEMES as $ theme => $ options ) : ?>
8994 <?php
9095 $ dataAttrs = "" ;
9196 foreach ($ options as $ key => $ value ) {
@@ -112,7 +117,7 @@ function gtag() {
112117
113118 <label for="locale">Locale</label>
114119 <select class="param" id="locale" name="locale">
115- <?php foreach ($ LOCALES as $ locale ): ?>
120+ <?php foreach ($ LOCALES as $ locale ) : ?>
116121 <option value="<?php echo $ locale ; ?> ">
117122 <?php $ display = Locale::getDisplayName ($ locale , $ locale ); ?>
118123 <?php echo $ display . " ( " . $ locale . ") " ; ?>
@@ -206,7 +211,7 @@ function gtag() {
206211 <div class="color-properties parameters">
207212 <label for="properties">Add Property</label>
208213 <select id="properties" name="properties">
209- <?php foreach ($ THEMES ["default " ] as $ option => $ color ): ?>
214+ <?php foreach ($ THEMES ["default " ] as $ option => $ color ) : ?>
210215 <option><?php echo $ option ; ?> </option>
211216 <?php endforeach ; ?>
212217 </select>
@@ -232,24 +237,24 @@ function gtag() {
232237 <p class="warning">
233238 Note: The stats above are just examples and not from your GitHub profile.
234239 </p>
235-
240+
236241 <div>
237242 <h2>Markdown</h2>
238243 <div class="code-container md">
239244 <code></code>
240245 </div>
241-
246+
242247 <button class="copy-button btn tooltip copy-md" onclick="clipboard.copy(this);" onmouseout="tooltip.reset(this);" disabled>
243248 Copy To Clipboard
244249 </button>
245250 </div>
246-
251+
247252 <div>
248253 <h2>HTML</h2>
249254 <div class="code-container html">
250255 <code></code>
251256 </div>
252-
257+
253258 <button class="copy-button btn tooltip copy-html" onclick="clipboard.copy(this);" onmouseout="tooltip.reset(this);" disabled>
254259 Copy To Clipboard
255260 </button>
@@ -260,7 +265,7 @@ function gtag() {
260265 <div class="code-container json">
261266 <code></code>
262267 </div>
263-
268+
264269 <button class="copy-button btn tooltip copy-json" onclick="clipboard.copy(this);" onmouseout="tooltip.reset(this);" disabled>
265270 Copy To Clipboard
266271 </button>
@@ -285,4 +290,4 @@ function gtag() {
285290 </a>
286291</body>
287292
288- </html>
293+ </html>
0 commit comments