-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAttributeDefinitionComparer.cs
45 lines (40 loc) · 1.79 KB
/
AttributeDefinitionComparer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//Copyright (c) 2004-2007
//by Engage Software ( http://www.engagesoftware.com )
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
//TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
//THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
//CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
//DEALINGS IN THE SOFTWARE.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;
namespace Engage.Dnn.Locator
{
public class AttributeDefinitionComparer : IComparer
{
#region IComparer Interface
/// -----------------------------------------------------------------------------
/// <summary>
/// Compares two ProfilePropertyDefinition objects
/// </summary>
/// <param name="x">A ProfilePropertyDefinition object</param>
/// <param name="y">A ProfilePropertyDefinition object</param>
/// <returns>An integer indicating whether x greater than y, x=y or x less than y</returns>
/// <history>
/// [cnurse] 01/31/2006 created
/// </history>
/// -----------------------------------------------------------------------------
int System.Collections.IComparer.Compare(object x, object y)
{
return ((AttributeDefinition)x).ViewOrder.CompareTo(((AttributeDefinition)y).ViewOrder);
}
#endregion
}
}