Basic sorting functionality
This example demonstrates a basic sorting interaction for a list of add-on products, showing how users can drag items into a new order and persist that arrangement. The interface relies on the TypeScript component `sortableOption()` in `ui.ts`, which iterates through the displayed add-ons, reassigns a sequential `order` value to each, and submits the updated list to a product service via an HTTP subscription. On the server side, the C# handler `UpdateAddOnOrder` receives a list of `UpdateSortOrderRequest` objects, fetches the corresponding add-on records by ID, updates each record’s `SortOrder` property, and saves the changes through a gateway. The rendering approach appears to be a standard Angular-based reactive UI with a user action logger for audit trails.
AI-generated description