Bug 218

Summary: Same color and same number tile should come together when sorting by number
Product: Gp10 Reporter: whng28-c
Component: javaAssignee: whng28-c
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Mac OS   

Description whng28-c 2017-11-26 02:44:44 HKT
1. Create a Rack class with 5 tiles,
Tile t1 = new Tile(5, Color.Red);
Tile t2 = new Tile(5, Color.Blue);
Tile t3 = new Tile(5, Color.Red);
Tile t4 = new Tile(2, Color.Yellow);
Tile t5 = new Tile(1, Color.Red);
2. Use the method of sortByNumber()

Expected:
- t5 > t4 > t2 > t1 > t3

Actual:
- t5 > t4 > t1 > t2 > t3