# Multiqc not sorting descendingly with custom\_plot\_config

**URL:** <https://community.seqera.io/t/multiqc-not-sorting-descendingly-with-custom-plot-config/2126>\
**Category:** Ask for help\
**Tags:** multiqc\
**Created:** [May 14, 2025, 8:02am UTC](https://community.seqera.io/t/multiqc-not-sorting-descendingly-with-custom-plot-config/2126 "2025-05-14T08:02:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TS2310](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ts2310/32/1804_2.png) [@TS2310](https://community.seqera.io/u/TS2310)\
**Post date:** [May 14, 2025, 8:02am UTC](https://community.seqera.io/t/multiqc-not-sorting-descendingly-with-custom-plot-config/2126/1 "2025-05-14T08:02:23Z")

</div>

I am working on a custom module for my internship.  
I am making a custom table that should look something like this:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/seqera/original/2X/1/11c0440a31a87ea5e9e0810c4936651897416b7f.png)

But for some reason when I try to preload the sorting settings with the multiqc\_config.yaml it only sorts in ascending order, like this and takes the first column with it.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/seqera/original/2X/3/3b71564cb9b183f112863fb5f5ace6b67f021f57.png)

I have a multiqc\_config with the following settings:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/seqera/original/2X/4/4f74f43413e2319b94ec60b9d13b3f600a0b53ff.png)

I have also tried without adding direction like described in the documentation [Plotting functions | Seqera Docs](https://docs.seqera.io/multiqc/development/plots#specifying-sorting-of-columns)

I am new to this, so any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![vlad.savelyev](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/vlad.savelyev/32/576_2.png) [@vlad.savelyev](https://community.seqera.io/u/vlad.savelyev)\
**Post date:** [May 14, 2025, 10:11am UTC](https://community.seqera.io/t/multiqc-not-sorting-descendingly-with-custom-plot-config/2126/2 "2025-05-14T10:11:01Z")

</div>

Hi Thomas! I can’t seem to be able to reproduce the issue. I’m running on the `samtools coverage` test data ([test-data/data/modules/samtools/coverage at main · MultiQC/test-data · GitHub](https://github.com/MultiQC/test-data/tree/main/data/modules/samtools/coverage)):

```auto
multiqc -f test-data/data/modules/samtools/coverage -c ~/.multiqc_config.yaml

```

With the following config:

```auto
custom_plot_config:
  samtools-coverage-table_table:
    defaultsort:
      - column: "Mean depth"
        direction: desc

```

And it looks as expected:

 ![Screenshot 2025-05-14 at 12.10.29](https://europe1.discourse-cdn.com/flex013/uploads/seqera/original/2X/d/d1e95d46cb8020f69b0a9a31c3d5caf5c5d3f046.png)

Would you be able to share a reproducible example?

---

<div class="post-metadata">

**Author:** ![TS2310](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ts2310/32/1804_2.png) [@TS2310](https://community.seqera.io/u/TS2310)\
**Post date:** [May 14, 2025, 11:22am UTC](https://community.seqera.io/t/multiqc-not-sorting-descendingly-with-custom-plot-config/2126/3 "2025-05-14T11:22:31Z")

</div>

I have added a smaller edition of my project in the zip file together with some test data.  
Normally after installing and using $ multiqc -m msh2 ./test\_data/ -c multiqc\_config\_MSH2.yaml should do the trick for producing the report.

[multiqc\_help.zip](https://community.seqera.io/uploads/short-url/tXa7ah5OeAiyN33pwbT8WjRWLd8.zip) (1.4 MB)

---

<div class="post-metadata">

**Author:** ![TS2310](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ts2310/32/1804_2.png) [@TS2310](https://community.seqera.io/u/TS2310)\
**Post date:** [May 15, 2025, 12:33pm UTC](https://community.seqera.io/t/multiqc-not-sorting-descendingly-with-custom-plot-config/2126/4 "2025-05-15T12:33:28Z")

</div>

Could my problem be caused due to my column consisting out of strings instead of floats or integers? Sorry for bothering with this niche question.

---

<div class="post-metadata">

**Author:** ![TS2310](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ts2310/32/1804_2.png) [@TS2310](https://community.seqera.io/u/TS2310)\
**Post date:** [May 26, 2025, 9:05am UTC](https://community.seqera.io/t/multiqc-not-sorting-descendingly-with-custom-plot-config/2126/5 "2025-05-26T09:05:24Z")

</div>

Problem seems to be solved when updating to multiqc 1.29.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/system/32/2402_2.png) [@system](https://community.seqera.io/u/system)\
**Post date:** [June 2, 2025, 9:06am UTC](https://community.seqera.io/t/multiqc-not-sorting-descendingly-with-custom-plot-config/2126/6 "2025-06-02T09:06:13Z")

</div>

Closed on June 2, 2025, 9:06am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
