New Samsung TV not showing NAS files in selected order

I guess we are talking DLNA ?

Switch to a modern streaming solution like jellyfin/emby/Plex and install the corresponding server (NAS) and Player (TV) and you can do all sorts of sorting, naming,tagging, etc

Or get a cheapo streaming stick with android and throw KODI on it, then index the desired NAS folder via SMB, also possible.