[test][distance] rearrange .cpp files in lexicographical order