Vue-good-table: defaultSortBy to sort by more than 1 column

Created on 4 Sep 2018  路  3Comments  路  Source: xaksis/vue-good-table

Issue Type (delete the irrelevant ones)

  • [x] Question

Specs

1.21
Chrome Version 69.0.3497.72 (Official Build) beta (64-bit)

Expected Behavior

Looking for a way to have defaultSortBy sort the table by two columns, first by Date then by From. Tried with an array of objects. How could this be done?

Actual Behavior

No change, table is sorted by the first column only.

Steps to Reproduce the Problem

Pass an array in defaultSortBy, like this: :defaultSortBy="[{field: 'Date', type: 'asc'}, {field: 'From', type: 'asc'}]"

jsfiddle

https://jsfiddle.net/Lra2yk0t/6/

researching

Most helpful comment

@dariagrudzien sorty it took so long, but this is now implemented in v2.16:
https://xaksis.github.io/vue-good-table/guide/configuration/sort-options.html#initialsortby

in addition user can also shift-select multiple columns for multi-column sort

closing.

All 3 comments

Any news about this ?

@dariagrudzien @pedroresende I'm looking into this there are a few considerations I need to take into account. Will update once I have made some progress.

@dariagrudzien sorty it took so long, but this is now implemented in v2.16:
https://xaksis.github.io/vue-good-table/guide/configuration/sort-options.html#initialsortby

in addition user can also shift-select multiple columns for multi-column sort

closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luizzz picture luizzz  路  6Comments

davidohlin picture davidohlin  路  6Comments

mgd722 picture mgd722  路  7Comments

oflittlemother picture oflittlemother  路  6Comments

davidjr82 picture davidjr82  路  6Comments