We will show you how to sort your folder list, by file size. In our previous tutorials, you learned how to list your files on a page and how to format the displayed size and date, of the files. Now, let's add some sorting options. We added to simple HTML buttons, in the size column header. Click the one, that should be used, to sort the folder list, by size, in ascending order. Click the add new behavior button. And under DMXzone, select control extended repeater (1). Open the action dropdown. And select - sort data (2). Select your repeat region, from the dropdown. And enter the property, that you want to sort the list by. In our case we enter size. Then, we select - ascending order (3). Click the OK button, when you are done.
then, do the same with the sort in descending order button this time, selecting descending in the sort behavior. And let's preview the results, when you are done. You can see, that sort buttons are working great, sorting our files list in ascending or descending order.