explicitly provide memory format when calling to clone() at Sorting.cpp
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28663
Test Plan: Imported from OSS
Differential Revision: D18333373
Pulled By: ifedan
fbshipit-source-id: 908880dd58d5e795db661a7249a11028f610c328