def getSmallerAndBiggerElement(element1, element2):
  """Returning a tuple of smaller and bigger element, if the same length the first is listed first.
  >>> getSmallerAndBiggerElement([1,2], [3,4])
  ([1, 2], [3, 4])

  >>> getSmallerAndBiggerElement([1,2,3], [3,4])
  ([3, 4], [1, 2, 3])

  >>> getSmallerAndBiggerElement([1,2], [3,4,5])
  ([1, 2], [3, 4, 5])
  """
  smallerList = None
  biggerList = None
  if len(element1) == len(element2):
    smallerList = element1
    biggerList = element2
  elif len(element1) > len(element2):
    smallerList = element2
    biggerList = element1
  else:
    smallerList = element1
    biggerList = element2

  return (smallerList, biggerList)