Ticket #2530520 (closed defect)

Reporter


Lee
Opened: 07/12/11
Last modified: 08/18/11
Status: closed
Type: defect
Resolution: fixed

Owner


Ryan Grove
Target Release: 3.4.0
Priority: P3 (normal)
Summary: model-list doesnt sort properly on refresh when using comparator
Description:

when using a custom comparator function, the models are not sorted correctly after refresh.

Type: defect Observed in Version: 3.4.0 PR2
Component: App Framework Severity: S3 (normal)
Assigned To: Ryan Grove Target Release: 3.4.0
Location: Library Code Priority: P3 (normal)
Tags: sort, refresh, modelList Relates To:
Browsers: N/A
URL: http://lee-2.smugmug.net/test/yui/app.mg
Test Information:

start off with an unsorted array of model data, use a simple comparator for the modelList, wire the array of data to the load sync method of the model list. load the list. the list is in a different
order than it was originally, but its not sorted correctly. now sort the list, it is sorted correctly.

Change History

Ryan Grove

YUI Developer

Posted: 07/12/11
  • location changed to Library Code
  • milestone changed to 3.4.0
  • priority changed to P3 (normal)
  • status changed from new to accepted

Ryan Grove

YUI Developer

Posted: 07/12/11
  • estimated changed from 0 to 0.25
  • remaining changed from 0 to 0.25
  • sprint changed to sprint 3

Ryan Grove

YUI Developer

Posted: 07/12/11
  • completed changed from 0 to 0.1
  • remaining changed from 0.25 to 0
  • status changed from accepted to checkedin

Fixed in commit 047f7c8c. Thanks for the report!

George

YUI Developer

Posted: 08/18/11
  • resolution changed to fixed
  • status changed from checkedin to closed