diff --git a/Framework/Algorithms/src/SortXAxis2.cpp b/Framework/Algorithms/src/SortXAxis2.cpp
index eb9abc8f1352541119ee913600c1e45146143446..642d386edcf7702457f7c7554d317b7a356bf4a8 100644
--- a/Framework/Algorithms/src/SortXAxis2.cpp
+++ b/Framework/Algorithms/src/SortXAxis2.cpp
@@ -90,8 +90,8 @@ std::vector<std::size_t> SortXAxis::createIndexes(const size_t sizeOfX) {
  * @tparam Comparator
  * @param workspaceIndicies, the vector of indicies values
  * @param inputWorkspace, the original workspace
- * @param specNum, the Spectrum number to be sorted
- * @param compare, std::less<double> for Ascending order, std::greater<double>
+ * @param specNum the Spectrum number to be sorted
+ * @param compare std::less<double> for Ascending order std::greater<double>
  * for descending order
  */
 template <typename Comparator>