Table.sort failing

image

Fails to print anything

image
directory of everything (sortedtable comes out as nil)

image
also the first table works completely fine if I print the stuff in it out

table.sort has no return value, when you do table.sort, the same table you give it will be sorted without having to edit the variable

3 Likes

I had that thought in the back of my head and now I feel dumb. But thanks for the info

2 Likes