Updates the sources (bibliographical references) data by sending a PUT request to the API.
This function takes an array of Source objects, sorts them by ID,
and sends them to the backend API for persistent storage. Sources include
books, articles, and other references used in maqam research.
Parameters
sources: Source[]
Array of Source objects to update
Returns Promise<void>
Throws
Error if the API request fails or returns a non-OK status
Updates the sources (bibliographical references) data by sending a PUT request to the API.
This function takes an array of Source objects, sorts them by ID, and sends them to the backend API for persistent storage. Sources include books, articles, and other references used in maqam research.