Skip to content

Commit

Permalink
Sort by fileName
Browse files Browse the repository at this point in the history
  • Loading branch information
ramvibhakar committed Jul 27, 2015
1 parent 95445b3 commit 4652921
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 754 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@
loginButton.label = "Login";
refreshButton.visible = false;
}
_failedLogin = false;
refresh();
}
Expand Down Expand Up @@ -297,16 +296,16 @@
public function displaySketchList(sortedArr:SortedList):void {
if (sortedArr) {
//var arr:ArrayCollection = new ArrayCollection();
var arr:ArrayCollection = new ArrayCollection();
if (sortedArr.size > 0) {
for (var i:int = 0; i < sortedArr.size; i++) {
arrDG.addItem(sortedArr.itemAt(i));
arr.addItem(sortedArr.itemAt(i));
}
// var sort:Sort = new Sort();
// sort.fields = [new SortField("fileName",true)];
// arr.sort = sort;
// arr.refresh();
// arrDG = arr;
var sort:Sort = new Sort();
sort.fields = [new SortField("fileName",true)];
arr.sort = sort;
arr.refresh();
arrDG = arr;
listSketches_unavailable.visible = false;
}
}
Expand Down Expand Up @@ -489,12 +488,12 @@
public function kSketchItemRendererFuntion(item:*):IFactory {
return itemRender;
}
private function scaleView():void
{
if(Capabilities.screenResolutionX > 1280 && Capabilities.screenResolutionY > 1500)
{
KSketchStyles.scale(2);
KSketchStyles.scale(2);
}
else if(Capabilities.screenResolutionX > 1280 && Capabilities.screenResolutionY < 1500)
{
Expand Down
Loading

0 comments on commit 4652921

Please sign in to comment.