USE [Configuration02_Def]
GO

DELETE [tblSystemCustomSorts] where [nID] in (26,27, 28, 29, 30, 31, 31,32,33,34,35,36,37,39,40,41,42,43);


IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemCustomSorts] WHERE nID=1 )
	INSERT [dbo].[tblSystemCustomSorts] ([nID], [tName], [tCaption], [nParentTableID], [fFieldsChanged]) 
	VALUES (1, N'Name', N'Name', 4, 2);

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemCustomSorts] WHERE nID=2 )
	INSERT [dbo].[tblSystemCustomSorts] ([nID], [tName], [tCaption], [nParentTableID], [fFieldsChanged]) 
	VALUES (2, N'Most$Recently$Updated', N'Most Recently Updated', 4, 2);

