def sort_genes(self, stable=True, inplace=False, ascending=True):
kind = '<STR_LIT>'<EOL>if stable:<EOL><INDENT>kind = '<STR_LIT>'<EOL><DEDENT>return self.sort_index(kind=kind, inplace=inplace, ascending=ascending)<EOL>
Sort the rows of the matrix alphabetically by gene name.

        Parameters
        ----------
        stable: bool, optional
            Whether to use a stable sorting algorithm. [True]
        inplace: bool, optional
            Whether to perform the operation in place.[False]
        ascending: bool, optional
            Whether to sort in ascending order [True]

        Returns
        -------
        `ExpMatrix`
            The sorted matrix.