X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDO.pm;h=034189fc347e1dd5c5d8afa559f5357876a781b5;hb=a2179ea178c2e8cdcef9fd0cab517048778383de;hp=f32e097dc282065775abd81cf77a89e9b5e3d9be;hpb=ca247333e470aefad12228a8a17c7d76bc598c74;p=kivitendo-erp.git diff --git a/SL/DO.pm b/SL/DO.pm index f32e097dc..034189fc3 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -1030,9 +1030,9 @@ sub order_details { my $sortorder = ""; if ($form->{groupitems}) { $sortorder = - qq|ORDER BY pg.partsgroup, a.id|; + qq|ORDER BY pg.partsgroup, a.position|; } else { - $sortorder = qq|ORDER BY a.id|; + $sortorder = qq|ORDER BY a.position|; } do_statement($form, $h_pg, $q_pg, conv_i($form->{"id_$i"}));