i have a save/load screen like this:

canvas layer -scroll container --VBox container

at ready, the node search for savegame files and adds a button for every file, with contains its info

everything is working good but i need now sort the files (buttons or whatever) by save date in the container in some way

how i could handle this??

every time i use containers think "why the containers have not some kind of sort options??" it would be a 'make life more easy' cool feature, because all games needs menus, guis, containers and all that stuff

You could extend the container and add the sorting code. Or you could attach a script and do it manually. Basically have an array with the dates and the index of the child node, sort the array, and then call move_child() to reorder the nodes.

is there a way to get the date modification file? of the .json?

its seems working... roughly, this is how I have done it

i get the modified time then turn the value in negative, and add to array then sort the array then create the buttons and sort by their array pos in the container

var file = File.new()
var modif_date = file.get_modified_time(path_to_file)
print ("modif_date ", modif_date)
modif_date *= -1
File.close()

files_modification_dates.append(modif_date)
files_modification_dates.sort()

func sortMe():
	var updated_pos = files_modification_dates.find(modif_date, 0)
	get_parent().move_child(self, updated_pos)

a year later