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 1767B200C21 for ; Sun, 5 Feb 2017 08:20:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 15FB5160B32; Sun, 5 Feb 2017 07:20:48 +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 5BE0D160B59 for ; Sun, 5 Feb 2017 08:20:47 +0100 (CET) Received: (qmail 70280 invoked by uid 500); 5 Feb 2017 07:20:46 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 70269 invoked by uid 99); 5 Feb 2017 07:20:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Feb 2017 07:20:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1C7111A0042 for ; Sun, 5 Feb 2017 07:20:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id InNR875pFiEu for ; Sun, 5 Feb 2017 07:20:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id AE3835FC0C for ; Sun, 5 Feb 2017 07:20:44 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D223EE04DB for ; Sun, 5 Feb 2017 07:20:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 88B862528D for ; Sun, 5 Feb 2017 07:20:42 +0000 (UTC) Date: Sun, 5 Feb 2017 07:20:42 +0000 (UTC) From: "Aravindan Vijayan (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMBARI-16863) Select Versions page: List of stack and stack versions should be numerically sorted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 05 Feb 2017 07:20:48 -0000 [ https://issues.apache.org/jira/browse/AMBARI-16863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aravindan Vijayan resolved AMBARI-16863. ---------------------------------------- Resolution: Fixed > Select Versions page: List of stack and stack versions should be numerically sorted > ----------------------------------------------------------------------------------- > > Key: AMBARI-16863 > URL: https://issues.apache.org/jira/browse/AMBARI-16863 > Project: Ambari > Issue Type: Bug > Components: ambari-web > Affects Versions: 2.4.0 > Reporter: Oleg Nechiporenko > Assignee: Oleg Nechiporenko > Fix For: 2.4.0 > > > It seems that we are using JS inbuilt sort function to sort the stack id shown as tabs and stack versions that are shown under dropdown for each stack. > JS sort function sorts the element alphabetically. This works correctly for single digit numbers like 2.4.2.1, 2.4.2.2, etc but will not work correctly for double digit versions like 2.4.7.0, 2.4.13.0, etc. In that case 2.4.13.0 will be treated smaller than 2.4.7.0 > Also we need to consider the case when stack id or repository version has string at the end like 2.3.ECS in which case string should be ignored -- This message was sent by Atlassian JIRA (v6.3.15#6346)