Skip to content

Commit

Permalink
[Fixed: bagisto#8809]
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-webkul committed Oct 26, 2023
1 parent 82ea926 commit 04e98fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function getAttributeOptions($id)
{
$attribute = $this->attributeRepository->findOrFail($id);

return $attribute->options()->get();
return $attribute->options()->orderBy('sort_order')->get();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class="text-center hover:bg-gray-50 dark:hover:bg-gray-950"
<input
type="hidden"
:name="'options[' + element.id + '][position]'"
:name="'options[' + element.id + '][sort_order]'"
:value="index"
/>
</x-admin::table.td>
Expand Down

0 comments on commit 04e98fc

Please sign in to comment.