fix uses of sort in canvas3d