API for MFC Sorting Controls
StringOrder

Copyright 2016 by David Wincelberg

StringOrder: alphabetic ordering

CStringOrder();

constructor

virtual int CompareStrings (LPCTSTR pszItem1, LPCTSTR pszItem2, bool bLimit = false) const;

Compares strings alphabetically. Optionally limits results to -1, 0 or +1.

pszItem1 first string to compare
pszItem2 second string to compare
bLimit limit result to -1, 0 or +1

int LimitResult (int nTest) const (protected)

Limits results to -1, 0 or +1.

nTest value to limit to -1, 0 or +1

StringSANOrder: simple alphanumeric ordering

CStringSANOrder();

constructor

virtual int CompareStrings (LPCTSTR pszItem1, LPCTSTR pszItem2, bool bLimit = false) const;

Compares strings simple alphanumerically. Optionally limits results to -1, 0 or +1.

pszItem1 first string to compare
pszItem2 second string to compare
bLimit limit result to -1, 0 or +1