why error?
CREATE FUNCTION [dbo].[seth] (@IdUrl BIGINT)
RETURNS TABLE
AS
RETURN(SELECT * FROM dbo.NetGraph ORDER BY IdUrl)
error
Msg 1033, Level 15, State 1, Procedure seth, Line 4
The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.
or
how order by field in C# data table?
you can do “SELECT * FROM dbo.seth(@your_value) ORDER BY IdUrl”