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

If my input is not sequential, the results are not parallel

How to Sort its ? type data varchar …