Skip to content

Commit

Permalink
Merge pull request #558 from shakethatweight-simon/patch-1
Browse files Browse the repository at this point in the history
Sort meta fields by group_id first
  • Loading branch information
alicolville committed Jul 17, 2023
2 parents 762bffd + 1235894 commit 5dc8509
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 5dc8509

Please sign in to comment.