:GetSortedAsync() in data tables

This is a pretty simple question however I can’t find an existing topic on it, is it possible to order a value in a replicated saved table? and if so how? 55
My table looks like this, so if I were to order the coin value across my datastore is it possible to do this?

1 Like

No you can’t use ‘Normal’ datastores for this, you need to replicate the value to either an Ordered DataStore (So only [key] > numeric value pairs allowed, not the mixed array that you currently have) or you could also get all the values that you need from your Normal DataStore, put them in a table and do a table.sort() operation on it.

3 Likes

thanks for the feedback! I completely forgot about sorting tables lol, cheers.

1 Like