Help for Pivot or through

Please, i want create pivot table, but i dont know , where i must first start ?
Give me Example and How so that th in the table matches the data on tr in the database
bandicam%202018-11-03%2010-22-52-155 bandicam%202018-11-03%2010-25-35-575
bandicam%202018-11-03%2010-28-47-086

If my input is not sequential, the results are not parallel
bandicam%202018-11-03%2010-44-37-282

How to Sort its ? type data varchar …