Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D2296200B61 for ; Tue, 9 Aug 2016 13:36:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D0D0A160AA5; Tue, 9 Aug 2016 11:36:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2587B160AA4 for ; Tue, 9 Aug 2016 13:36:44 +0200 (CEST) Received: (qmail 22802 invoked by uid 500); 9 Aug 2016 11:36:44 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 22788 invoked by uid 99); 9 Aug 2016 11:36:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2016 11:36:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A1B3AC3BA2 for ; Tue, 9 Aug 2016 11:36:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id KjgDjLeiz359 for ; Tue, 9 Aug 2016 11:36:41 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 8C9F55FC8B for ; Tue, 9 Aug 2016 11:36:41 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 7DFB734F283DF for ; Tue, 9 Aug 2016 04:36:40 -0700 (MST) Date: Tue, 9 Aug 2016 03:50:58 -0700 (PDT) From: zejuho To: users@flex.apache.org Message-ID: <1470739858434-13247.post@n4.nabble.com> Subject: Datagrid sorting MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Tue, 09 Aug 2016 11:36:46 -0000 Hi, I used flex 4.14.1 Spark Datagrid with drag and drop, multi selection, ... and had issues. One of them was the sorting on grid column value when data is String and may be null. Indeed if i use null type for sortCompareType; the nullCompare method reaffect the compareFunction to stringComapre as soon as the first value are tested, why ? So i implements SortFieldEx and GridSortFieldEx with much copy/paste code since most of the pb code was private to test null value before Cast String(null) which was ordering null values between M and O letters. Since 4.15.0 are out, i was hoping that it may be fixed but actually New Type GridSortFieldSimple and GridSortFieldComplex replace GridSortField, may be my approach is wrong. Why nullCompare only test the first to values and change the compareFunction, why stringCompare cast null to "null" and treat it as a N value ? Thanks in advance -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Datagrid-sorting-tp13247.html Sent from the Apache Flex Users mailing list archive at Nabble.com.