Skip to content

Commit

Permalink
Sort meta fields by group_id first
Browse files Browse the repository at this point in the history
If meta fields are grouped, then it would be useful to keep related fields together when displaying them
  • Loading branch information
shakethatweight-simon authored Jul 13, 2023
1 parent 762bffd commit 1235894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pro-features/plus/meta-fields/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function ws_ls_meta_fields( $exclude_system = true, $ignore_cache = false ) {
$sql .= ' Where `system` = 0';
}

$sql .= ' order by sort, field_name asc';
$sql .= ' order by group_id, sort, field_name asc';

$data = $wpdb->get_results( $sql , ARRAY_A );

Expand Down

0 comments on commit 1235894

Please sign in to comment.