Sort variables by filename