예제 #1
0
            public int Compare(object x, object y)
            {
                var s0 = x == null ? "" : x.ToString();
                var s1 = y == null ? "" : y.ToString();

                if (s0.Length < 1)
                {
                    s0 = ("?" + s0);
                }

                if (s1.Length < 1)
                {
                    s1 = ("?" + s1);
                }

                var p0 = dayNo(s0[0]);
                var p1 = dayNo(s1[0]);
                var pc = p0 - p1;

                if (pc == 0)
                {
                    return(StrUtil.ComparerThinkNumber(s0, s1));
                }
                else
                {
                    return(pc);
                }
            }