Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13787] Code Processor: Lists of APIs in plugins should be sorted alphabetically

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-05-15T19:06:21.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 10 JS, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsCode Processor
Labelscode-analyzer, qe-closed-3.1.1, qe-testadded
ReporterBryan Hughes
AssigneeBryan Hughes
Created2013-05-08T05:21:18.000+0000
Updated2013-09-24T09:11:15.000+0000

Description

Currently, list of APIs in plugin results (such as ti-api-usage-finder) are sorted by execution order which can get unwieldy to deal with in large projects. They should be sorted alphabetically instead

Attachments

FileDateSize
Screen Shot 2013-05-15 at 2.00.27 PM.png2013-05-15T18:01:25.000+000032751

Comments

  1. Bryan Hughes 2013-05-15

    To test, run "titanium analyze -p iphone -A -R results". This will generate HTML results files in a directory called "results" inside the project folder. Open index.html in the results folder and navigate to the API Usage tab. Without the fix, the APIs are unsorted, but with the fix they are sorted alphabetically.
  2. Tony Lukasavage 2013-05-15

    Functionally testing https://github.com/appcelerator/titanium-code-processor/pull/178 I found that either upper/lower case letters are not sorting properly, or the sorting is dependent on whether the API is a namespace versus a function. All the Ti.UI.createView calls are sorted _after_ all the Ti.UI.View ones. See the attached screenshot for reference.
  3. Tony Lukasavage 2013-05-15

  4. Tony Lukasavage 2013-05-15

    Got an updated version of the plugin branches and all is working as expected now. Merged all 4 PRs.
  5. Federico Casali 2013-05-30

    The list of the APIs being used is displayed in the 'API Usage Finder' section. Verified that the order in which are displayed is alphabetically in all the subsections relative to APIs (like "APIs Used" and "APIs Used by File"). Appcelerator Studio 3.1.1.201305292130 Titanium SDK 3.1.1.v20130529114554 Alloy 1.1.3-alpha Titanium-Code-Processor 1.1.3-alpha3 Closing.

JSON Source