Max Possible Binary Concatenation

Given an array of positive integers, concatenate their binary representations in any order to form a single binary string, then interpret it as a number. Find the maximum possible integer that can be formed this way.

Examples
Input: [1,2,3]
Output: 27
Hints

Max Possible Binary Concatenation

Given an array of positive integers, concatenate their binary representations in any order to form a single binary string, then interpret it as a number. Find the maximum possible integer that can be formed this way.